mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 02:12:54 +00:00
Graphs: Note restart required when changing persistence setting
This commit is contained in:
1 parent
7a1e2865fc
commit
a5c0448053
1 file changed
+3
@@ -486,8 +486,11 @@ public class GraphHelper extends FormHandler {
|
||||
changes.put(PROP_EVENTS, Boolean.toString(_showEvents));
|
||||
changes.put(PROP_LEGEND, Boolean.toString(_graphHideLegend));
|
||||
changes.put(SummaryListener.PROP_PERSISTENT, Boolean.toString(_persistent));
|
||||
boolean warn = _persistent != _context.getBooleanPropertyDefaultTrue(SummaryListener.PROP_PERSISTENT);
|
||||
_context.router().saveConfig(changes, null);
|
||||
addFormNotice(_t("Graph settings saved"));
|
||||
if (warn)
|
||||
addFormError(_t("Restart required to take effect"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user