Switch to Advanced prefs pane on click on toolbar item.
This commit is contained in:
parent
3ef942a56a
commit
7f731164a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue