Disable creating new windows (duplicates)

This commit is contained in:
Stefan Ceriu
2026-03-30 15:36:05 +03:00
committed by Stefan Ceriu
parent 50522b5261
commit 256cc5c35a

View File

@@ -58,6 +58,11 @@ struct Application: App {
}
.handlesExternalEvents(matching: ["*"])
.commands {
CommandGroup(replacing: .newItem) {
Button(L10n.actionStartChat) { }
.disabled(true)
}
CommandGroup(replacing: .appSettings) {
Button(L10n.commonSettings) {
appCoordinator.handleAppRoute(.settings, windowType: nil)