Make ShowProgressUI return even when the updater UI is not active.

This commit is contained in:
darin%meer.net 2005-06-23 05:03:26 +00:00
parent 2bff37b882
commit 19c5249d72

View File

@ -91,8 +91,12 @@ static const char *sProgramPath;
if (sQuit) {
[aTimer invalidate];
[aTimer release];
// It seems to be necessary to hide ourselves before we stop, otherwise the
// "run" method will not return until the user focuses some other app.
// It seems to be necessary to activate and hide ourselves before we stop,
// otherwise the "run" method will not return until the user focuses some
// other app. The activate step is necessary if we are not the active app.
// This is a big hack, but it seems to do the trick.
[NSApp activateIgnoringOtherApps:YES];
[NSApp hide:self];
[NSApp stop:self];
}