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
Родитель 364e7660b7
Коммит beccfdb119
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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];
}