From 53058602694c8d17942dc874817b42cb9a6be51a Mon Sep 17 00:00:00 2001 From: dynaflash Date: Mon, 22 Sep 2008 15:29:09 +0000 Subject: [PATCH] MacGui: Fix sleep/shutdown warning so it only comes up once right when starting encoding instead of every time the queue starts the next encode. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1743 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 5fe2d6ff0..38ff91540 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -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 */ -- 2.49.0