mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Improved the check at startup string to use the application's name when referring to the application menu.
Fixed a bug where the user choosing to skip a verseion would inhibit future automatic updates until the next launch--thanks to Charles D.H. Williams.
This commit is contained in:
1 parent
24a4137506
commit
a5e239d5a3
1 file changed
+3
-1
+3
-1
@@ -105,7 +105,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
shouldCheckAtStartup = [NSNumber numberWithBool:NSRunAlertPanel(SULocalizedString(@"Check for updates on startup?", nil), [NSString stringWithFormat:SULocalizedString(@"Would you like %@ to check for updates on startup? If not, you can initiate the check manually from the application menu.", nil), SUHostAppDisplayName()], SULocalizedString(@"Yes", nil), SULocalizedString(@"No", nil), nil) == NSAlertDefaultReturn];
|
||||
shouldCheckAtStartup = [NSNumber numberWithBool:NSRunAlertPanel(SULocalizedString(@"Check for updates on startup?", nil), [NSString stringWithFormat:SULocalizedString(@"Would you like %@ to check for updates on startup? If not, you can initiate the check manually from the %@ menu.", nil), SUHostAppDisplayName(), SUHostAppDisplayName()], SULocalizedString(@"Yes", nil), SULocalizedString(@"No", nil), nil) == NSAlertDefaultReturn];
|
||||
}
|
||||
[[NSUserDefaults standardUserDefaults] setObject:shouldCheckAtStartup forKey:SUCheckAtStartupKey];
|
||||
}
|
||||
@@ -261,6 +261,8 @@
|
||||
case SUSkipThisVersionChoice:
|
||||
updateInProgress = NO;
|
||||
[[NSUserDefaults standardUserDefaults] setObject:[updateItem fileVersion] forKey:SUSkippedVersionKey];
|
||||
if (checkInterval)
|
||||
[self scheduleCheckWithInterval:checkInterval];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user