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

Skip to content
Snippets Groups Projects
Unverified Commit 69adf843 authored by zzz's avatar zzz
Browse files

Console: Fix saving flat clients.config file

when in portable configuration and changing the
launch browser on startup setting on /configservice
ref: http://zzz.i2p/topics/3347
parent af8272b9
No related branches found
No related tags found
No related merge requests found
...@@ -363,10 +363,15 @@ public class ConfigServiceHandler extends FormHandler { ...@@ -363,10 +363,15 @@ public class ConfigServiceHandler extends FormHandler {
String url = _context.portMapper().getConsoleURL(); String url = _context.portMapper().getConsoleURL();
ca = new ClientAppConfig(UrlLauncher.class.getName(), "consoleBrowser", ca = new ClientAppConfig(UrlLauncher.class.getName(), "consoleBrowser",
url, 5, false); url, 5, false);
clients.add(ca);
} }
try { try {
if (ca != null) if (ca != null) {
ClientAppConfig.writeClientAppConfig(_context, ca); if (ClientAppConfig.isSplitConfig(_context))
ClientAppConfig.writeClientAppConfig(_context, ca);
else
ClientAppConfig.writeClientAppConfig(_context, clients);
}
addFormNotice(_t("Configuration saved successfully")); addFormNotice(_t("Configuration saved successfully"));
} catch (IOException ioe) { } catch (IOException ioe) {
addFormError(_t("Error saving the configuration (applied but not saved) - please see the error logs")); addFormError(_t("Error saving the configuration (applied but not saved) - please see the error logs"));
......
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