fix tray icon switch

(using predefined/correct config name)
pull/40/head
reger 9 years ago
parent e3d53f0248
commit 04161912a5

@ -103,11 +103,11 @@ public class Status
redirect = true; redirect = true;
} else if ( post.containsKey("popup") ) { } else if ( post.containsKey("popup") ) {
final boolean trigger_enabled = post.getBoolean("popup"); final boolean trigger_enabled = post.getBoolean("popup");
sb.setConfig("browserPopUpTrigger", trigger_enabled); sb.setConfig(SwitchboardConstants.BROWSER_POP_UP_TRIGGER, trigger_enabled);
redirect = true; redirect = true;
} else if ( post.containsKey("tray") ) { } else if ( post.containsKey("tray") ) {
final boolean trigger_enabled = post.getBoolean("tray"); final boolean trigger_enabled = post.getBoolean("tray");
sb.setConfig("trayIcon", trigger_enabled); sb.setConfig(SwitchboardConstants.TRAY_ICON_ENABLED, trigger_enabled);
redirect = true; redirect = true;
} }
@ -303,7 +303,7 @@ public class Status
prop.put("otherPeers", "0"); // not online prop.put("otherPeers", "0"); // not online
} }
if ( !sb.getConfigBool("browserPopUpTrigger", false) ) { if ( !sb.getConfigBool(SwitchboardConstants.BROWSER_POP_UP_TRIGGER, false) ) {
prop.put("popup", "0"); prop.put("popup", "0");
} else { } else {
prop.put("popup", "1"); prop.put("popup", "1");
@ -311,7 +311,7 @@ public class Status
if ( !OS.isWindows ) { if ( !OS.isWindows ) {
prop.put("tray", "2"); prop.put("tray", "2");
} else if ( !sb.getConfigBool("trayIcon", false) ) { } else if ( !sb.getConfigBool(SwitchboardConstants.TRAY_ICON_ENABLED, false) ) {
prop.put("tray", "0"); prop.put("tray", "0");
} else { } else {
prop.put("tray", "1"); prop.put("tray", "1");

Loading…
Cancel
Save