From a5e239d5a3526dbfccddfab6c13f792b421e8efa Mon Sep 17 00:00:00 2001 From: andym Date: Thu, 23 Aug 2007 02:17:53 +0000 Subject: [PATCH] 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. --- SUUpdater.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SUUpdater.m b/SUUpdater.m index 3caaf55f..612b6b1f 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -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; } }