diff options
author | rowanbeentje <rowan@beent.je> | 2014-02-11 00:39:56 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2014-04-25 23:37:52 -0400 |
commit | f387da0349f567e98c94544191df64881304a959 (patch) | |
tree | 4604e509bb611a841f71b71a206572ab64b4372b | |
parent | 69c12e163713013af75fdb80d6982f30b81a9a06 (diff) | |
download | sequelpro-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
-rw-r--r-- | Source/SPConnectionController.m | 2 | ||||
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 8 |
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]; } |