From 256cc5c35ad13e38ee0e4f9992326fac9ce7dd06 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 30 Mar 2026 15:36:05 +0300 Subject: [PATCH] Disable creating new windows (duplicates) --- ElementX/Sources/Application/Application.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ElementX/Sources/Application/Application.swift b/ElementX/Sources/Application/Application.swift index 3c669579c..690fac258 100644 --- a/ElementX/Sources/Application/Application.swift +++ b/ElementX/Sources/Application/Application.swift @@ -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)