i2psnark: Fix nbsp in logs on config change (ticket #2082)

This commit is contained in:
zzz
2017-11-22 15:55:19 +00:00
parent d28220cd04
commit 700c843b11

View File

@@ -1022,7 +1022,7 @@ public class SnarkManager implements CompleteListener, ClientApp {
_util.setStartupDelay(minutes); _util.setStartupDelay(minutes);
changed = true; changed = true;
_config.setProperty(PROP_STARTUP_DELAY, Integer.toString(minutes)); _config.setProperty(PROP_STARTUP_DELAY, Integer.toString(minutes));
addMessage(_t("Startup delay changed to {0}", DataHelper.formatDuration2(minutes * (60L * 1000)))); addMessageNoEscape(_t("Startup delay changed to {0}", DataHelper.formatDuration2(minutes * (60L * 1000))));
} }
} }
@@ -1033,7 +1033,7 @@ public class SnarkManager implements CompleteListener, ClientApp {
changed = true; changed = true;
_config.setProperty(PROP_REFRESH_DELAY, Integer.toString(secs)); _config.setProperty(PROP_REFRESH_DELAY, Integer.toString(secs));
if (secs >= 0) if (secs >= 0)
addMessage(_t("Refresh time changed to {0}", DataHelper.formatDuration2(secs * 1000))); addMessageNoEscape(_t("Refresh time changed to {0}", DataHelper.formatDuration2(secs * 1000)));
else else
addMessage(_t("Refresh disabled")); addMessage(_t("Refresh disabled"));
} }