forked from I2P_Developers/i2p.i2p
Some changes to enable per-page sidebar configuration from the config file
This commit is contained in:
@@ -40,11 +40,11 @@ public class ConfigSummaryHandler extends FormHandler {
|
||||
}
|
||||
} else if ("1".equals(group)) {
|
||||
if (_action.equals(_("Use full preset"))) {
|
||||
_context.router().saveConfig(SummaryHelper.PROP_SUMMARYBAR, SummaryHelper.PRESET_FULL);
|
||||
_context.router().saveConfig(SummaryHelper.PROP_SUMMARYBAR + "default", SummaryHelper.PRESET_FULL);
|
||||
addFormNotice(_("Full summary bar preset selected.") + " " +
|
||||
_("Summary bar will refresh shortly."));
|
||||
} else if (_action.equals(_("Use reduced preset"))) {
|
||||
_context.router().saveConfig(SummaryHelper.PROP_SUMMARYBAR, SummaryHelper.PRESET_SHORT);
|
||||
_context.router().saveConfig(SummaryHelper.PROP_SUMMARYBAR + "default", SummaryHelper.PRESET_SHORT);
|
||||
addFormNotice(_("Reduced summary bar preset selected.") + " " +
|
||||
_("Summary bar will refresh shortly."));
|
||||
} else {
|
||||
@@ -115,7 +115,7 @@ public class ConfigSummaryHandler extends FormHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
SummaryHelper.saveSummaryBarSections(_context, sections);
|
||||
SummaryHelper.saveSummaryBarSections(_context, "default", sections);
|
||||
addFormError(_("Saved order of sections.") + " " +
|
||||
_("Summary bar will refresh shortly."));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user