mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 10:55:03 +00:00
Add standard Settings menu item with Cmd+, on macOS
This commit is contained in:
@@ -17,6 +17,14 @@ struct FileCommands: Commands {
|
||||
}
|
||||
.keyboardShortcut("o", modifiers: [.command])
|
||||
}
|
||||
#if os(macOS)
|
||||
CommandGroup(replacing: .appSettings) {
|
||||
Button(String(localized: "menu.app.settings")) {
|
||||
NotificationCenter.default.post(name: .showSettings, object: nil)
|
||||
}
|
||||
.keyboardShortcut(",", modifiers: [.command])
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user