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 13c8ccefa4
commit b2463b9629

View file

@ -109,7 +109,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
}