now using cached checks for os type

This commit is contained in:
nathan 2018-10-31 20:40:16 +01:00
parent b01a4d5039
commit 3073f77fb3

View File

@ -780,7 +780,7 @@ class SystemTray {
if (isTrayType(trayType, TrayType.GtkStatusIcon)) { if (isTrayType(trayType, TrayType.GtkStatusIcon)) {
OSUtil.DesktopEnv.Env de = OSUtil.DesktopEnv.get(); 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) { if (AUTO_FIX_INCONSISTENCIES) {
// GTK2 does not support AppIndicators! // GTK2 does not support AppIndicators!
if (Gtk.isGtk2) { if (Gtk.isGtk2) {