mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Separate autosave names for states with/without release notes
This commit is contained in:
1 parent
f2ca019cb0
commit
77d16de08a
1 file changed
+4
-2
Vendored
+4
-2
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user