mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-09 08:39:00 +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
|
// MARK: Actions
|
||||||
|
|
||||||
@objc func toolbarItemClicked(_ sender: Any?) {
|
@objc func toolbarItemClicked(_ sender: Any?) {
|
||||||
|
guard let toolbarItem = sender as? NSToolbarItem else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
switchToView(identifier: toolbarItem.itemIdentifier.rawValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: NSToolbarDelegate
|
// MARK: NSToolbarDelegate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user