From eb09c39ec49d934660c4f0837e7fbfef3f76ca62 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 23 Jul 2017 15:35:45 +0200 Subject: [PATCH] Code polish --- src/dorkbox/systemTray/SystemTray.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dorkbox/systemTray/SystemTray.java b/src/dorkbox/systemTray/SystemTray.java index c5fb8ab..96d158d 100644 --- a/src/dorkbox/systemTray/SystemTray.java +++ b/src/dorkbox/systemTray/SystemTray.java @@ -397,8 +397,6 @@ class SystemTray { return; } - systemTray = new SystemTray(); - // if (DEBUG) { // Properties properties = System.getProperties(); // for (Map.Entry entry : properties.entrySet()) { @@ -899,6 +897,7 @@ class SystemTray { // javaFX and SWT **CAN NOT** start on the EDT!! // linux + GTK/AppIndicator menus must not start on the EDT! + systemTray = new SystemTray(); // AWT/Swing must be constructed on the EDT however... if (JavaFX.isLoaded || Swt.isLoaded ||