From c668c662b616ec378f6ff8315055b46acbc923cc Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 3 Jan 2011 12:49:49 +0000 Subject: =?UTF-8?q?=E2=80=A2=20changed=20the=20way=20to=20check=20for=20av?= =?UTF-8?q?ailable=20update=20of=20Default=20Bundles=20-=20perform=20a=20c?= =?UTF-8?q?heck=20only=20if=20the=20revision=20number=20is=20greater=20as?= =?UTF-8?q?=20the=20last=20recorded=20one,=20in=20other=20words=20if=20an?= =?UTF-8?q?=20updated=20version=20of=20Sequel=20Pro=20was=20installed=20an?= =?UTF-8?q?d=20runs=20for=20the=20very=20first=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPPreferencesUpgrade.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/SPPreferencesUpgrade.m') 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) { -- cgit v1.2.3