1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Notify user with error message / popup if xdg-open fails

This commit is contained in:
Reinhard Pointner 2018-07-12 22:41:55 +07:00
parent ec2110dc2b
commit 29875dab1a

View File

@ -65,7 +65,7 @@ public final class SwingUI {
try { try {
UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel"); UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
} catch (Exception e) { } catch (Exception e) {
debug.log(Level.SEVERE, "Failed to set Nimbus LaF", e); log.log(Level.SEVERE, "Failed to set Nimbus LaF", e);
} }
} }
@ -73,7 +73,7 @@ public final class SwingUI {
try { try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) { } catch (Exception e) {
debug.log(Level.SEVERE, "Failed to set System LaF", e); log.log(Level.SEVERE, "Failed to set System LaF", e);
} }
} }
@ -87,7 +87,7 @@ public final class SwingUI {
p.inheritIO().start(); p.inheritIO().start();
} }
} catch (Exception e) { } catch (Exception e) {
debug.log(Level.SEVERE, "Failed to open URI: " + uri, e); log.log(Level.SEVERE, "Failed to open URI: " + uri, e);
} }
} }