Disable creating new windows (duplicates)
This commit is contained in:
committed by
Stefan Ceriu
parent
50522b5261
commit
256cc5c35a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user