aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-29 12:14:07 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-29 12:14:07 +0000
commit92fbb6abcc89c946b1565de862b59af016651fdb (patch)
tree28dc60dee658d81efa4b3be126870e4e8f0535bf /Source/SPAppController.m
parent615a5494c22b9d7f710f3b3efafda85f19e2909d (diff)
downloadsequelpro-92fbb6abcc89c946b1565de862b59af016651fdb.tar.gz
sequelpro-92fbb6abcc89c946b1565de862b59af016651fdb.tar.bz2
sequelpro-92fbb6abcc89c946b1565de862b59af016651fdb.zip
• Open Session file
- set [tabbar setHideForSingleTab:NO] if window has more than one tab in order to avoid issues while animated fading-in of the tabbar - assign initial keyboard short-cut ^⌥⌘S for Save Session (needs to be discussed) - still hidden
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index aa2cf3b1..85ad93a2 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -343,6 +343,9 @@
SPWindowController *newWindowController = [[SPWindowController alloc] initWithWindowNibName:@"MainWindow"];
NSWindow *newWindow = [newWindowController window];
+ if([[window objectForKey:@"tabs"] count] > 1)
+ [newWindowController setHideForSingleTab:NO];
+
// The first window should use autosaving; subsequent windows should cascade.
// So attempt to set the frame autosave name; this will succeed for the very
// first window, and fail for others.