mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
runModal like the old alert from Changeset 127. [NSApp runModalForWindow:] calls [window center], so we can remove it.
This commit is contained in:
1 parent
07462e570b
commit
fcf471d08f
1 file changed
+2
-2
@@ -30,8 +30,7 @@
|
||||
+ (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 @@
|
||||
[[SUUserDefaults standardUserDefaults] setBool:shouldSendProfile forKey:SUSendProfileInfoKey];
|
||||
[delegate updatePermissionPromptFinishedWithResult:([sender tag] == 1 ? SUAutomaticallyUpdate : SUDoNotAutomaticallyUpdate)];
|
||||
[[self window] close];
|
||||
[NSApp stopModal];
|
||||
[self autorelease];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user