Separate autosave names for states with/without release notes

This commit is contained in:
Kornel Lesiński committed 2014-07-07 02:03:35 +01:00
1 parent f2ca019cb0
commit 77d16de08a
1 file changed
+4 -2
+4 -2
View File
@@ -173,6 +173,10 @@
- (void)awakeFromNib
{
BOOL showReleaseNotes = [self showsReleaseNotes];
[self.window setFrameAutosaveName: showReleaseNotes ? @"SUUpdateAlert" : @"SUUpdateAlertSmall" ];
if ([self.host isBackgroundApplication]) {
[self.window setLevel:NSFloatingWindowLevel]; // This means the window will float over all other apps, if our app is switched out ?!
}
@@ -182,8 +186,6 @@
[self.installButton setAction:@selector(openInfoURL:)];
}
BOOL showReleaseNotes = [self showsReleaseNotes];
if (showReleaseNotes) {
[self displayReleaseNotes];
}