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:
andym committed 2007-08-23 02:17:53 +00:00
1 parent 24a4137506
commit a5e239d5a3
1 file changed
+3 -1
+3 -1
View File
@@ -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;
}
}