OSDN Git Service

MacGui: Fix sleep/shutdown warning so it only comes up once right when starting encod...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 22 Sep 2008 15:29:09 +0000 (15:29 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 22 Sep 2008 15:29:09 +0000 (15:29 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1743 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index 5fe2d6f..38ff915 100644 (file)
@@ -661,9 +661,7 @@ static NSString *        ChooseSourceIdentifier             = @"Choose Source It
                 frame.origin.y -= 36;
                 [fWindow setFrame:frame display:YES animate:YES];
                 fRipIndicatorShown = YES;
-                /* We check to see if we need to warn the user that the computer will go to sleep
-                 or shut down when encoding is finished */
-                [self remindUserOfSleepOrShutdown];
+                
             }
             
             /* Update dock icon */
@@ -2891,8 +2889,11 @@ fWorkingCount = 0;
         return;
     }
     
-    // If there are pending jobs in the queue, then this is a rip the queue
+    /* We check to see if we need to warn the user that the computer will go to sleep
+                 or shut down when encoding is finished */
+                [self remindUserOfSleepOrShutdown];
     
+    // If there are pending jobs in the queue, then this is a rip the queue
     if (fPendingCount > 0)
     {
         /* here lets start the queue with the first pending item */