Skip to content

Commit

Permalink
if the user chooses to not restart the host app after installing the …
Browse files Browse the repository at this point in the history
…new version, the Sparkle update status window goes away and stops annoying the user by staying on screen; originally by simX, http://github.com/rentzsch/clicktoflash/commit/c768f07087c769f12f7645e78dd42802da46048b
  • Loading branch information
Simone Manganelli authored and Simone Manganelli committed Aug 23, 2009
1 parent 9b5b541 commit 43a603c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion SUUIBasedUpdateDriver.m
Expand Up @@ -145,7 +145,19 @@ - (void)installUpdate
{
[statusController beginActionWithTitle:SULocalizedString(@"Installing update...", @"Take care not to overflow the status window.") maxProgressValue:0 statusText:nil];
[statusController setButtonEnabled:NO];
[super installUpdate];
[super installUpdate];


// if a user chooses to NOT relaunch the app (as is the case with WebKit
// when it asks you if you are sure you want to close the app with multiple
// tabs open), the status window still stays on the screen and obscures
// other windows; with this fix, it doesn't

if (statusController)
{
[statusController close];
[statusController autorelease];
}
}

- (void)abortUpdateWithError:(NSError *)error
Expand Down

0 comments on commit 43a603c

Please sign in to comment.