summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-09-30 07:47:00 +0200
committerDamiano Galassi <[email protected]>2015-09-30 07:47:00 +0200
commitc667e5ae33ce3cb13d24925fe63e1e286192af5f (patch)
tree2b235c208c8ff36709bd30e92d30ec96a59b42f1 /macosx/HBController.m
parentc5360d65dfec773d87735b6db0d012df4045bd04 (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.m4
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];
}