Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

runModal like the old alert from Changeset 127. [NSApp runModalForWin…

…dow:] calls [window center], so we can remove it.
  • Loading branch information...
commit fcf471d08f919d7a8eee6cd019e2c18770beb76f 1 parent 07462e5
catlan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 SUUpdatePermissionPrompt.m
View
4 SUUpdatePermissionPrompt.m
@@ -30,8 +30,7 @@ - (id)initWithHostBundle:(NSBundle *)hb delegate:(id)d
+ (void)promptWithHostBundle:(NSBundle *)hb delegate:(id)d
{
id prompt = [[[self class] alloc] initWithHostBundle:hb delegate:d];
- [[prompt window] center];
- [prompt showWindow:self];
+ [NSApp runModalForWindow:[prompt window]];
}
- (void)awakeFromNib
@@ -117,6 +116,7 @@ - (IBAction)finishPrompt:(id)sender
[[SUUserDefaults standardUserDefaults] setBool:shouldSendProfile forKey:SUSendProfileInfoKey];
[delegate updatePermissionPromptFinishedWithResult:([sender tag] == 1 ? SUAutomaticallyUpdate : SUDoNotAutomaticallyUpdate)];
[[self window] close];
+ [NSApp stopModal];
[self autorelease];
}
Please sign in to comment.
Something went wrong with that request. Please try again.