[Build] Disable unneeded 'page will reload' messages

This commit is contained in:
Ton Huisman
2026-02-14 21:57:35 +01:00
parent 90f45e032b
commit 8b335014ca
11 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ boolean Plugin_046(uint8_t function, struct EventStruct *event, String& string)
FormSelectorOptions selector(NR_ELEMENTS(options), options);
selector.reloadonchange = true;
selector.addFormSelector(F("Plugin function"), F("p046"), choice);
addFormNote(F("Changing the function will reload this page."));
// addFormNote(F("Changing the function will reload this page."));
}
if (choice == 0) {
+1 -1
View File
@@ -170,7 +170,7 @@ boolean Plugin_047(uint8_t function, struct EventStruct *event, String& string)
selector.default_index = static_cast<int>(P047_MODEL_CATNIP);
selector.reloadonchange = true;
selector.addFormSelector(F("Sensor model"), F("model"), P047_MODEL);
addFormNote(F("Changing the Sensor model will reload the page."));
// addFormNote(F("Changing the Sensor model will reload the page."));
}
if ((P047_MODEL_CATNIP == static_cast<P047_SensorModels>(P047_MODEL))
+1 -1
View File
@@ -155,7 +155,7 @@ boolean Plugin_105(uint8_t function, struct EventStruct *event, String& string)
FormSelectorOptions selector(optionCount, options, indices);
selector.reloadonchange = true;
selector.addFormSelector(F("Sensor model"), F("ahttype"), P105_AHT_TYPE);
addFormNote(F("Changing Sensor model will reload the page."));
// addFormNote(F("Changing Sensor model will reload the page."));
if (static_cast<int>(AHTx_device_type::AHT10_DEVICE) == P105_AHT_TYPE) {
addFormCheckBox(F("AHT10 Alternative initialization"), F("altinit"), P105_ALT_INIT);
+1 -1
View File
@@ -187,7 +187,7 @@ boolean Plugin_129(uint8_t function, struct EventStruct *event, String& string)
F("Number of chips (Q7 &rarr; DS)"), F("chipcnt"), P129_CONFIG_CHIP_COUNT);
addUnit(concat(F("Daisychained 1.."), P129_MAX_CHIP_COUNT));
# ifndef LIMIT_BUILD_SIZE
addFormNote(F("Changing the number of chips will reload the page and update the Event configuration."));
// addFormNote(F("Changing the number of chips will reload the page and update the Event configuration."));
# endif // ifndef LIMIT_BUILD_SIZE
}
+1 -1
View File
@@ -121,7 +121,7 @@ boolean Plugin_135(uint8_t function, struct EventStruct *event, String& string)
selector.reloadonchange = true;
selector.addFormSelector(F("Sensor model"), F("ptype"), P135_SENSOR_TYPE);
# ifndef LIMIT_BUILD_SIZE
addFormNote(F("Page will reload on change."));
// addFormNote(F("Page will reload on change."));
# endif // ifndef LIMIT_BUILD_SIZE
}
+3 -3
View File
@@ -207,9 +207,9 @@ boolean Plugin_137(uint8_t function, struct EventStruct *event, String& string)
selector.reloadonchange = !Settings.isPowerManagerTask(event->TaskIndex);
selector.addFormSelector(F("Predefined device configuration"), F("predef"), 0);
if (!Settings.isPowerManagerTask(event->TaskIndex)) {
addFormNote(F("Page will reload when selection is changed."));
}
// if (!Settings.isPowerManagerTask(event->TaskIndex)) {
// addFormNote(F("Page will reload when selection is changed."));
// }
const P137_PredefinedDevices_e current_ = static_cast<P137_PredefinedDevices_e>(P137_CURRENT_PREDEFINED);
+1 -1
View File
@@ -194,7 +194,7 @@ boolean Plugin_143(uint8_t function, struct EventStruct *event, String& string)
FormSelectorOptions selector(optionCount, selectModeOptions, selectModeValues);
selector.reloadonchange = true;
selector.addFormSelector(F("Encoder type"), F("pdevice"), P143_ENCODER_TYPE);
addFormNote(F("Changing the Encoder type will reload the page and reset Encoder specific settings to default!"));
// addFormNote(F("Changing the Encoder type will reload the page and reset Encoder specific settings to default!"));
}
P143_DeviceType_e device = static_cast<P143_DeviceType_e>(P143_ENCODER_TYPE);
+2 -2
View File
@@ -135,13 +135,13 @@ boolean Plugin_147(uint8_t function, struct EventStruct *event, String& string)
selector.reloadonchange = true;
selector.addFormSelector(F("Sensor model"), F("ptype"), P147_SENSOR_TYPE);
# ifndef BUILD_NO_DEBUG
addFormNote(F("Page will reload on change."));
// addFormNote(F("Page will reload on change."));
# endif // ifndef BUILD_NO_DEBUG
}
addFormSelector_YesNo(F("Use Compensation"), F("comp"), P147_GET_USE_COMPENSATION, true);
# ifndef BUILD_NO_DEBUG
addFormNote(F("Page will reload on change."));
// addFormNote(F("Page will reload on change."));
# endif // ifndef BUILD_NO_DEBUG
if (P147_GET_USE_COMPENSATION) {
+2 -2
View File
@@ -162,7 +162,7 @@ boolean Plugin_150(uint8_t function, struct EventStruct *event, String& string)
selector.reloadonchange = true;
selector.addFormSelector(F("Conversion mode"), F("conv"), P150_GET_CONF_CONVERSION_MODE);
# ifndef BUILD_NO_DEBUG
addFormNote(F("Changing this setting will save and reload this page."));
// addFormNote(F("Changing this setting will save and reload this page."));
# endif // ifndef BUILD_NO_DEBUG
}
@@ -196,7 +196,7 @@ boolean Plugin_150(uint8_t function, struct EventStruct *event, String& string)
addFormSelector_YesNo(F("Enable 'Raw' value"), F("raw"), P150_GET_OPT_ENABLE_RAW ? 1 : 0, true);
# ifndef BUILD_NO_DEBUG
addFormNote(F("Changing this setting will save and reload this page."));
// addFormNote(F("Changing this setting will save and reload this page."));
# endif // ifndef BUILD_NO_DEBUG
addFormCheckBox(F("Log measured values (INFO)"), F("log"), P150_GET_OPT_ENABLE_LOG);
+1 -1
View File
@@ -230,7 +230,7 @@ boolean Plugin_159(uint8_t function, struct EventStruct *event, String& string)
case PLUGIN_WEBFORM_LOAD:
{
addFormSelector_YesNo(F("Engineering mode"), F("eng"), P159_GET_ENGINEERING_MODE, true);
addFormNote(F("When changing this setting the page will be reloaded"));
// addFormNote(F("When changing this setting the page will be reloaded"));
addFormCheckBox(F("Generate Events only when changed"), F("diff"), P159_GET_UPDATE_DIFF_ONLY);
+1 -1
View File
@@ -190,7 +190,7 @@ boolean Plugin_167(uint8_t function, struct EventStruct *event, String& string)
FormSelectorOptions selector(optCount, options_model, options_model_value);
selector.reloadonchange = true;
selector.addFormSelector(F("Model Type"), P167_MODEL_LABEL, P167_MODEL);
addFormNote(F("Changing the Model Type will reload the page."));
// addFormNote(F("Changing the Model Type will reload the page."));
if (P167_MODEL == P167_MODEL_VINDSTYRKA) {
addFormPinSelect(PinSelectPurpose::Generic_input, F("MonPin SCL"), F("taskdevicepin3"), P167_MON_SCL_PIN);