mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-23 23:51:06 +01:00
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
Block a user