From 2277d0deae66a9498008f3b77f149d7f44298209 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)