Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix tray icon switch (using predefined/correct config name)
reger04161912a5c5
diff --git a/htroot/Status.java b/htroot/Status.javaindex 3e44717fb..a137ce0ea 100644--- a/htroot/Status.java+++ b/htroot/Status.java@@ -103,11 +103,11 @@ public class Statusredirect = true;} else if ( post.containsKey("popup") ) {final boolean trigger_enabled = post.getBoolean("popup");- sb.setConfig("browserPopUpTrigger", trigger_enabled);+ sb.setConfig(SwitchboardConstants.BROWSER_POP_UP_TRIGGER, trigger_enabled);redirect = true;} else if ( post.containsKey("tray") ) {final boolean trigger_enabled = post.getBoolean("tray");- sb.setConfig("trayIcon", trigger_enabled);+ sb.setConfig(SwitchboardConstants.TRAY_ICON_ENABLED, trigger_enabled);redirect = true;}@@ -303,7 +303,7 @@ public class Statusprop.put("otherPeers", "0"); // not online}- if ( !sb.getConfigBool("browserPopUpTrigger", false) ) {+ if ( !sb.getConfigBool(SwitchboardConstants.BROWSER_POP_UP_TRIGGER, false) ) {prop.put("popup", "0");} else {prop.put("popup", "1");@@ -311,7 +311,7 @@ public class Statusif ( !OS.isWindows ) {prop.put("tray", "2");- } else if ( !sb.getConfigBool("trayIcon", false) ) {+ } else if ( !sb.getConfigBool(SwitchboardConstants.TRAY_ICON_ENABLED, false) ) {prop.put("tray", "0");} else {prop.put("tray", "1");