diff options
author | Damiano Galassi <[email protected]> | 2015-09-30 07:47:00 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-09-30 07:47:00 +0200 |
commit | c667e5ae33ce3cb13d24925fe63e1e286192af5f (patch) | |
tree | 2b235c208c8ff36709bd30e92d30ec96a59b42f1 /macosx/HBQueueController.m | |
parent | c5360d65dfec773d87735b6db0d012df4045bd04 (diff) |
MacGui: add a way to differentiate a cancelled scan/encoded from a failed scan/encode
Diffstat (limited to 'macosx/HBQueueController.m')
-rw-r--r-- | macosx/HBQueueController.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m index b54143ff2..7ae19da3e 100644 --- a/macosx/HBQueueController.m +++ b/macosx/HBQueueController.m @@ -468,8 +468,8 @@ self.progressTextField.stringValue = status; [self.controller setQueueInfo:status progress:0 hidden:NO]; } - completionHandler:^(BOOL success) { - if (success) + completionHandler:^(HBCoreResult result) { + if (result == HBCoreResultDone) { [self doEncodeQueueItem]; } @@ -538,7 +538,7 @@ self.progressTextField.stringValue = string; [self.controller setQueueInfo:string progress:progress hidden:NO]; } - completionHandler:^(BOOL success) { + completionHandler:^(HBCoreResult result) { NSString *info = NSLocalizedString(@"Encode Finished.", @""); self.progressTextField.stringValue = info; |