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 <sizovdmitrij@gmail.com>
This commit is contained in:
dsyzov 2026-04-15 12:33:22 +00:00
parent 64c1d17c7b
commit e8476bee6d

View file

@ -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
}