Add standard Settings menu item with Cmd+, on macOS

This commit is contained in:
Arkadiusz Fal
2026-04-20 20:55:07 +02:00
parent 508069cecf
commit 267f770274
2 changed files with 18 additions and 0 deletions

View File

@@ -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

View File

@@ -5142,6 +5142,16 @@
}
}
},
"menu.app.settings" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Settings..."
}
}
}
},
"menu.file.openLink" : {
"localizations" : {
"en" : {