From 641853ed8dcbe3f2d35e9216f858e07d1129a887 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Fri, 27 Oct 2023 11:39:11 +0200 Subject: [PATCH] Editor: Open in window on mac catalyst --- .../Sources/Status/Row/Subviews/StatusRowContextMenu.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift index 2186c7d6..4a26c51d 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift @@ -163,7 +163,11 @@ struct StatusRowContextMenu: View { } if currentInstance.isEditSupported { Button { - viewModel.routerPath.presentedSheet = .editStatusEditor(status: viewModel.status.reblogAsAsStatus ?? viewModel.status) + if ProcessInfo.processInfo.isMacCatalystApp { + openWindow(value: WindowDestination.editStatusEditor(status: viewModel.status.reblogAsAsStatus ?? viewModel.status)) + } else { + viewModel.routerPath.presentedSheet = .editStatusEditor(status: viewModel.status.reblogAsAsStatus ?? viewModel.status) + } } label: { Label("status.action.edit", systemImage: "pencil") }