aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferencesUpgrade.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-03 12:49:49 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-03 12:49:49 +0000
commitc668c662b616ec378f6ff8315055b46acbc923cc (patch)
tree8c0a7a860bd81e9ede9a66120965a9cb5b3409c9 /Source/SPPreferencesUpgrade.m
parent8a2cdc1581e018984a7bd5c34d510c7c32eef3f1 (diff)
downloadsequelpro-c668c662b616ec378f6ff8315055b46acbc923cc.tar.gz
sequelpro-c668c662b616ec378f6ff8315055b46acbc923cc.tar.bz2
sequelpro-c668c662b616ec378f6ff8315055b46acbc923cc.zip
• changed the way to check for available update of Default Bundles
- perform a check only if the revision number is greater as the last recorded one, in other words if an updated version of Sequel Pro was installed and runs for the very first time
Diffstat (limited to 'Source/SPPreferencesUpgrade.m')
-rw-r--r--Source/SPPreferencesUpgrade.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/SPPreferencesUpgrade.m b/Source/SPPreferencesUpgrade.m
index 7b1c31cf..350ef7e8 100644
--- a/Source/SPPreferencesUpgrade.m
+++ b/Source/SPPreferencesUpgrade.m
@@ -45,7 +45,7 @@ void SPApplyRevisionChanges(void)
// Get the current revision
if ([prefs objectForKey:@"lastUsedVersion"]) recordedVersionNumber = [[prefs objectForKey:@"lastUsedVersion"] integerValue];
if ([prefs objectForKey:SPLastUsedVersion]) recordedVersionNumber = [[prefs objectForKey:SPLastUsedVersion] integerValue];
-
+
// Skip processing if the current version matches or is less than recorded version
if (currentVersionNumber <= recordedVersionNumber) return;
@@ -54,7 +54,10 @@ void SPApplyRevisionChanges(void)
[prefs setObject:[NSNumber numberWithInteger:currentVersionNumber] forKey:SPLastUsedVersion];
return;
}
-
+
+ // Inform SPAppController to check installed default Bundles for available updates
+ [prefs setObject:[NSNumber numberWithBool:YES] forKey:@"doBundleUpdate"];
+
// For versions prior to r336 (0.9.4), where column widths have been saved, walk through them and remove
// any table widths set to 15 or less (fix for mangled columns caused by Issue #140)
if (recordedVersionNumber < 336 && [prefs objectForKey:SPTableColumnWidths] != nil) {