diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConnectionController.h | 1 | ||||
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 16 |
2 files changed, 13 insertions, 4 deletions
diff --git a/Source/SPConnectionController.h b/Source/SPConnectionController.h index 5dd19c4d..2cd4d170 100644 --- a/Source/SPConnectionController.h +++ b/Source/SPConnectionController.h @@ -93,6 +93,7 @@ IBOutlet NSView *connectionView; IBOutlet NSSplitView *connectionSplitView; IBOutlet NSScrollView *connectionDetailsScrollView; + IBOutlet NSTextField *connectionInstructionsTextField; IBOutlet BWAnchoredButtonBar *connectionSplitViewButtonBar; IBOutlet SPFavoritesOutlineView *favoritesOutlineView; diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m index 9094c6cc..65804eff 100644 --- a/Source/SPConnectionControllerDelegate.m +++ b/Source/SPConnectionControllerDelegate.m @@ -127,9 +127,9 @@ } - (void)outlineViewSelectionDidChange:(NSNotification *)notification -{ +{ if ([favoritesOutlineView numberOfSelectedRows] == 1) { - + SPTreeNode *node = [self selectedFavoriteNode]; if (![node isGroup]) { @@ -138,10 +138,18 @@ [addToFavoritesButton setEnabled:NO]; favoriteNameFieldWasTouched = YES; + + [connectionResizeContainer setHidden:NO]; + [connectionInstructionsTextField setStringValue:NSLocalizedString(@"Enter connection details below, or choose a favorite", @"enter connection details label")]; } - } + else { + [connectionResizeContainer setHidden:YES]; + [connectionInstructionsTextField setStringValue:NSLocalizedString(@"Please choose a favorite", @"please choose a favorite connection view label")]; + } + } else { - [addToFavoritesButton setEnabled:YES]; + [connectionResizeContainer setHidden:YES]; + [connectionInstructionsTextField setStringValue:NSLocalizedString(@"Please choose a favorite", @"please choose a favorite connection view label")]; } } |