From 3073f77fb3e69b5ae09aafc7254c08cbc1be1549 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 31 Oct 2018 20:40:16 +0100 Subject: [PATCH] now using cached checks for os type --- src/dorkbox/systemTray/SystemTray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dorkbox/systemTray/SystemTray.java b/src/dorkbox/systemTray/SystemTray.java index 3de14a3..8429042 100644 --- a/src/dorkbox/systemTray/SystemTray.java +++ b/src/dorkbox/systemTray/SystemTray.java @@ -780,7 +780,7 @@ class SystemTray { if (isTrayType(trayType, TrayType.GtkStatusIcon)) { OSUtil.DesktopEnv.Env de = OSUtil.DesktopEnv.get(); - if (OSUtil.DesktopEnv.isUnity(de) && OSUtil.Linux.isUbuntu()) { + if (OSUtil.Linux.isUbuntu() && OSUtil.DesktopEnv.isUnity(de)) { if (AUTO_FIX_INCONSISTENCIES) { // GTK2 does not support AppIndicators! if (Gtk.isGtk2) {