From f387da0349f567e98c94544191df64881304a959 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 11 Feb 2014 00:39:56 +0000 Subject: Tweak some connection controller animation orders for better interactions when toggling SSL/switching tabs to start an edit --- Source/SPConnectionController.m | 2 +- 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]; } -- cgit v1.2.3