Using properties where possible

This commit is contained in:
michael starke
2017-01-02 13:07:19 +01:00
parent 29abf7540f
commit b0ae3ab4fd

View File

@@ -292,9 +292,9 @@ NSString *const MPToolbarItemCopyPassword = @"TOOLBAR_COPY_PASSWORD";
_didShowToolbarForSearch = YES; _didShowToolbarForSearch = YES;
self.toolbar.visible = YES; self.toolbar.visible = YES;
} }
_displayModeBeforeSearch = [self.toolbar displayMode]; _displayModeBeforeSearch = self.toolbar.displayMode;
if(_displayModeBeforeSearch == NSToolbarDisplayModeLabelOnly) { 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 */ /* only make the searchfield first responder if it's not already in an active search */
if(![self.searchField currentEditor]) { if(![self.searchField currentEditor]) {