From 996a6baaa9a207621a7703bd8fd39d1e73172dd8 Mon Sep 17 00:00:00 2001 From: dsyzov Date: Wed, 15 Apr 2026 12:33:22 +0000 Subject: [PATCH] fix: remove error message when closing the "Open locally" dialog catch the exception thrown by the "open locally" dialog when closed within the action itself, so that it does not produce an error message when caught by higher level logic Signed-off-by: dsyzov --- apps/files/src/actions/openLocallyAction.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/files/src/actions/openLocallyAction.ts b/apps/files/src/actions/openLocallyAction.ts index d4dd63cad9d..f9dade28a94 100644 --- a/apps/files/src/actions/openLocallyAction.ts +++ b/apps/files/src/actions/openLocallyAction.ts @@ -113,7 +113,12 @@ async function confirmLocalEditDialog(): Promise<'online' | 'local' | false> { }, ]) .build() - - await dialog.show() + + try { + await dialog.show() + } catch (error) { + logger.debug('"Open locally" dialog closed') + } + return result }