mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 16:09:27 +00:00
Search toggle now actually toggles.
This commit is contained in:
@@ -255,8 +255,11 @@ NSString *const MPToolbarItemSearch = @"TOOLBAR_SEARCH";
|
||||
if(_displayModeBeforeSearch == NSToolbarDisplayModeLabelOnly) {
|
||||
[self.toolbar setDisplayMode:NSToolbarDisplayModeIconAndLabel];
|
||||
}
|
||||
[[self.searchField window] makeFirstResponder:self.searchField];
|
||||
[self.searchField selectText:self];
|
||||
/* only make the searchfield first responder if it's not aleady in an active search */
|
||||
if(![self.searchField currentEditor]) {
|
||||
[[self.searchField window] makeFirstResponder:self.searchField];
|
||||
[self.searchField selectText:self];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)_didExitSearch:(NSNotification *)notification {
|
||||
|
||||
Reference in New Issue
Block a user