mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 19:05: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
|
||||
|
||||
@@ -5142,6 +5142,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"menu.app.settings" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Settings..."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"menu.file.openLink" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
|
||||
Reference in New Issue
Block a user