aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferenceController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-08-02 12:41:40 +0000
committerrowanbeentje <rowan@beent.je>2009-08-02 12:41:40 +0000
commit865751a6154ec9c31ef73e95c5ead99682cb40fd (patch)
tree61c81534a14a3e3173c17cd3aa8781e395e3aa81 /Source/SPPreferenceController.m
parent89aed80bdcfdead340f9e5de5dc73ab051ae1f9b (diff)
downloadsequelpro-865751a6154ec9c31ef73e95c5ead99682cb40fd.tar.gz
sequelpro-865751a6154ec9c31ef73e95c5ead99682cb40fd.tar.bz2
sequelpro-865751a6154ec9c31ef73e95c5ead99682cb40fd.zip
- Add a tooltip to the table information pane toggle button
- Change the "[Show/Hide] Console" button in the toolbar to a "Console" button, which shows or brings the console window to the front - Update the default toolbar state to reflect recent additions - Reset everyone's toolbars to ensure that normal users will have the new icons available and visible
Diffstat (limited to 'Source/SPPreferenceController.m')
-rw-r--r--Source/SPPreferenceController.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m
index 79be5318..ca7c6562 100644
--- a/Source/SPPreferenceController.m
+++ b/Source/SPPreferenceController.m
@@ -263,6 +263,13 @@
[prefs setObject:[NSArray arrayWithArray:favoritesArray] forKey:@"favorites"];
}
+ // For versions prior to r1128 (~0.9.6), reset the main window toolbar items to add new items
+ if (recordedVersionNumber < 1128 && [prefs objectForKey:@"NSToolbar Configuration TableWindowToolbar"]) {
+ NSMutableDictionary *toolbarDict = [NSMutableDictionary dictionaryWithDictionary:[prefs objectForKey:@"NSToolbar Configuration TableWindowToolbar"]];
+ [toolbarDict removeObjectForKey:@"TB Item Identifiers"];
+ [prefs setObject:[NSDictionary dictionaryWithDictionary:toolbarDict] forKey:@"NSToolbar Configuration TableWindowToolbar"];
+ }
+
// Update the prefs revision
[prefs setObject:[NSNumber numberWithInt:currentVersionNumber] forKey:@"LastUsedVersion"];
}