From 7bb6129d34ff043de8651ee8d7a494b80e2138e2 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 26 Dec 2016 00:30:01 +0100 Subject: [PATCH] Code polish --- src/dorkbox/systemTray/SystemTray.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/dorkbox/systemTray/SystemTray.java b/src/dorkbox/systemTray/SystemTray.java index bbf0009..298748a 100644 --- a/src/dorkbox/systemTray/SystemTray.java +++ b/src/dorkbox/systemTray/SystemTray.java @@ -486,8 +486,7 @@ class SystemTray { // http://bazaar.launchpad.net/~wingpanel-devs/wingpanel/trunk/view/head:/sample/SampleIndicator.vala if (!useNativeMenus && AUTO_FIX_INCONSISTENCIES) { - if (OS.isElementaryOSInstalled()) { - logger.warn("Cannot use non-native menus with pantheon (elementaryOS). Forcing native menus."); + if (OS.isElementaryOS()) { } else { logger.warn("Cannot use non-native menus with pantheon DE. Forcing native menus."); } @@ -507,7 +506,7 @@ class SystemTray { } if ("gnome".equalsIgnoreCase(GDM)) { - if (OS.isArchInstalled()) { + if (OS.isArch()) { if (DEBUG) { logger.debug("Running Arch Linux."); } @@ -697,7 +696,7 @@ class SystemTray { } - if (OS.isArchInstalled()) { + if (OS.isArch()) { // arch linux is fun! if (isTrayType(trayType, TrayType.AppIndicator)) {