suppress exception when failing to open a shared file

dbus-notify
Zlatin Balevsky 2022-06-24 12:49:35 +01:00
parent c5580ae528
commit c0feafbc08
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 1 deletions

View File

@ -291,7 +291,9 @@ class MainFrameController {
if (!view.selectedFolders().isEmpty())
return
SharedFile sf = selected[0]
Desktop.getDesktop().open(sf.file)
try {
Desktop.getDesktop().open(sf.file)
} catch (IOException ignore) {} // TODO: show some warning
}
@ControllerAction