]> granicus.if.org Git - handbrake/commitdiff
MacGui: fix the stop button to properly stop the encode if libhb state is HBStateSear...
authorDamiano Galassi <damiog@gmail.com>
Mon, 21 Nov 2016 17:34:00 +0000 (18:34 +0100)
committerDamiano Galassi <damiog@gmail.com>
Mon, 21 Nov 2016 17:34:00 +0000 (18:34 +0100)
macosx/HBController.m
macosx/HBQueueController.m
macosx/HBStateFormatter+Private.m

index b6c06f519398c73b16ebd654780c3d417cb43fd0..a223ef54f2b71a9b52ccdb4f3252365fd2036442 100644 (file)
 - (IBAction)rip:(id)sender
 {
     // Rip or Cancel ?
-    if (fQueueController.core.state == HBStateWorking || fQueueController.core.state == HBStatePaused)
+    if (fQueueController.core.state == HBStateWorking || fQueueController.core.state == HBStatePaused || fQueueController.core.state == HBStateSearching)
        {
         // Displays an alert asking user if the want to cancel encoding of current job.
         [fQueueController cancelRip:self];
index 53aef5e05370f66c71b6c5ad950daf7e9c5e7d3f..31823371430910fdd86d03e31c445156b928e049 100644 (file)
 - (IBAction)rip:(id)sender
 {
     // Rip or Cancel ?
-    if (self.core.state == HBStateWorking || self.core.state == HBStatePaused)
+    if (self.core.state == HBStateWorking || self.core.state == HBStatePaused || self.core.state == HBStateSearching)
     {
         [self cancelRip:sender];
     }
index ffce1c0687dd4fa7b4a2d16bd5242e5366f4e1cb..809617e11f4b9e15656ac86c89b9e4bc8728ae6a 100644 (file)
@@ -21,7 +21,7 @@
         case HB_STATE_SEARCHING:
         {
             [string appendFormat:
-             NSLocalizedString(@"Searching for start point… :  %.2f %%", nil),
+             NSLocalizedString(@"Searching for start point:  %.2f %%", nil),
              100.0 * p.progress];
 
             if (p.seconds > -1)