Make tray icon optional (#69)

Maybe now I get along with GitHub ...
This commit is contained in:
Jouni Järvinen 2017-10-12 11:43:07 +03:00 committed by metaprime
parent 977e11f0ae
commit 15a0c39a3b

View File

@ -247,7 +247,10 @@ public final class MainWindow implements Runnable, RipStatusHandler {
}
private void createUI(Container pane) {
setupTrayIcon();
//If creating the tray icon fails, ignore it.
try {
setupTrayIcon();
} catch (Exception e) { }
EmptyBorder emptyBorder = new EmptyBorder(5, 5, 5, 5);
GridBagConstraints gbc = new GridBagConstraints();