Show restart badge
This commit is contained in:
@@ -616,3 +616,4 @@ STR_KB_HINT_URL_SNIPPETS: "Press URL for snippets"
|
|||||||
STR_BIONIC_READING: "Bionic Reading"
|
STR_BIONIC_READING: "Bionic Reading"
|
||||||
STR_BTN_ACT_TOGGLE_BIONIC_READING: "Toggle Bionic Reading"
|
STR_BTN_ACT_TOGGLE_BIONIC_READING: "Toggle Bionic Reading"
|
||||||
STR_BTN_ACT_CYCLE_FONT_SIZE: "Cycle Font Size"
|
STR_BTN_ACT_CYCLE_FONT_SIZE: "Cycle Font Size"
|
||||||
|
STR_RESTART_DEVICE: "Restart Device"
|
||||||
@@ -100,6 +100,7 @@ void CrossPointWebServerActivity::onExit() {
|
|||||||
requestUpdate();
|
requestUpdate();
|
||||||
|
|
||||||
if (webServerStarted) {
|
if (webServerStarted) {
|
||||||
|
GUI.drawPopup(renderer, tr(STR_RESTART_DEVICE));
|
||||||
LOG_DBG("WEBACT", "Restarting device after webserver exit to regain heap...");
|
LOG_DBG("WEBACT", "Restarting device after webserver exit to regain heap...");
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user