Switch to Advanced prefs pane on click on toolbar item.

This commit is contained in:
Brent Simmons 2019-01-26 21:45:22 -08:00
parent 3ef942a56a
commit 7f731164a3
1 changed files with 4 additions and 2 deletions

View File

@ -58,8 +58,10 @@ class PreferencesWindowController : NSWindowController, NSToolbarDelegate {
// MARK: Actions
@objc func toolbarItemClicked(_ sender: Any?) {
guard let toolbarItem = sender as? NSToolbarItem else {
return
}
switchToView(identifier: toolbarItem.itemIdentifier.rawValue)
}
// MARK: NSToolbarDelegate