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/HBController.m | |
parent | c5360d65dfec773d87735b6db0d012df4045bd04 (diff) |
MacGui: add a way to differentiate a cancelled scan/encoded from a failed scan/encode
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r-- | macosx/HBController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index 79ff33169..5fd1a4ae8 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -722,14 +722,14 @@ fScanHorizontalLine.hidden = YES; fScanIndicator.doubleValue = [formatter stateToPercentComplete:hb_state]; } - completionHandler:^(BOOL success) + completionHandler:^(HBCoreResult result) { fScanHorizontalLine.hidden = NO; fScanIndicator.hidden = YES; fScanIndicator.indeterminate = NO; fScanIndicator.doubleValue = 0.0; - if (success) + if (result == HBCoreResultDone) { [self showNewScan]; } |