mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 18:54:28 +05:00
feat: automatic restart after restoring settings
This commit is contained in:
@@ -226,6 +226,7 @@ protected:
|
|||||||
|
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
if (doc["settings"] && jsonToSettings(doc["settings"], settings)) {
|
if (doc["settings"] && jsonToSettings(doc["settings"], settings)) {
|
||||||
|
vars.actions.restart = true;
|
||||||
fsSettings.update();
|
fsSettings.update();
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user