I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 84f8931d authored by jrandom's avatar jrandom Committed by zzz
Browse files

oOo's timestamper fixes (wtf was i thinking with those web params? !thwap)

parent db135e50
No related branches found
No related tags found
No related merge requests found
......@@ -222,9 +222,10 @@ public class ConfigNetHandler extends FormHandler {
updateRates();
if (_timeSyncEnabled) {
// Time sync enable, means NOT disabled
_context.router().setConfigSetting(Timestamper.PROP_DISABLED, "false");
} else {
_context.router().setConfigSetting(Timestamper.PROP_DISABLED, "false");
_context.router().setConfigSetting(Timestamper.PROP_DISABLED, "true");
}
boolean saved = _context.router().saveConfig();
......
......@@ -51,8 +51,8 @@ public class ConfigNetHelper {
}
public String getEnableTimeSyncChecked() {
String enabled = _context.getProperty(Timestamper.PROP_DISABLED, "true");
if ( (enabled == null) || (!"true".equalsIgnoreCase(enabled)) )
String disabled = _context.getProperty(Timestamper.PROP_DISABLED, "false");
if ( (disabled != null) && ("true".equalsIgnoreCase(disabled)) )
return "";
else
return " checked ";
......
......@@ -180,7 +180,7 @@ public class Timestamper implements Runnable {
String disabled = _context.getProperty(PROP_DISABLED);
if (disabled == null)
disabled = DEFAULT_DISABLED + "";
_disabled = Boolean.getBoolean(disabled);
_disabled = Boolean.valueOf(disabled).booleanValue();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment