mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 11:42:30 +00:00
Using properties where possible
This commit is contained in:
@@ -292,9 +292,9 @@ NSString *const MPToolbarItemCopyPassword = @"TOOLBAR_COPY_PASSWORD";
|
||||
_didShowToolbarForSearch = YES;
|
||||
self.toolbar.visible = YES;
|
||||
}
|
||||
_displayModeBeforeSearch = [self.toolbar displayMode];
|
||||
_displayModeBeforeSearch = self.toolbar.displayMode;
|
||||
if(_displayModeBeforeSearch == NSToolbarDisplayModeLabelOnly) {
|
||||
[self.toolbar setDisplayMode:NSToolbarDisplayModeIconAndLabel];
|
||||
self.toolbar.displayMode = NSToolbarDisplayModeIconAndLabel;
|
||||
}
|
||||
/* only make the searchfield first responder if it's not already in an active search */
|
||||
if(![self.searchField currentEditor]) {
|
||||
|
||||
Reference in New Issue
Block a user