Graphs: Note restart required when changing persistence setting

This commit is contained in:
zzz
2020-03-24 16:28:03 +00:00
parent 7a1e2865fc
commit a5c0448053

View File

@ -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"));
}
}