aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2014-02-11 00:39:56 +0000
committerrowanbeentje <rowan@beent.je>2014-04-25 23:37:52 -0400
commitf387da0349f567e98c94544191df64881304a959 (patch)
tree4604e509bb611a841f71b71a206572ab64b4372b /Source
parent69c12e163713013af75fdb80d6982f30b81a9a06 (diff)
downloadsequelpro-f387da0349f567e98c94544191df64881304a959.tar.gz
sequelpro-f387da0349f567e98c94544191df64881304a959.tar.bz2
sequelpro-f387da0349f567e98c94544191df64881304a959.zip
Tweak some connection controller animation orders for better interactions when toggling SSL/switching tabs to start an edit
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionController.m2
-rw-r--r--Source/SPConnectionControllerDelegate.m8
2 files changed, 5 insertions, 5 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index adccee65..12624178 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -489,8 +489,8 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
- (IBAction)updateSSLInterface:(id)sender
{
#ifndef SP_CODA
- [self resizeTabViewToConnectionType:[self type] animating:YES];
[self _startEditingConnection];
+ [self resizeTabViewToConnectionType:[self type] animating:YES];
#endif
}
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index d5b8b61e..acd9f1d7 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -532,17 +532,17 @@ static NSString *SPQuickConnectImageWhite = @"quick-connect-icon-white.pdf";
if (selectedTabView == previousType) return;
+ [self _startEditingConnection];
+
[self resizeTabViewToConnectionType:selectedTabView animating:YES];
// Update the host as appropriate
if ((selectedTabView != SPSocketConnection) && [[self host] isEqualToString:@"localhost"]) {
[self setHost:@""];
}
-
+
previousType = selectedTabView;
-
- [self _startEditingConnection];
-
+
[self _favoriteTypeDidChange];
}