web: Make sure settings are loaded correctly

This commit is contained in:
WerWolv
2024-02-18 14:02:21 +01:00
parent 1bf1a56b01
commit 016d47b9d7
2 changed files with 10 additions and 4 deletions

View File

@@ -66,6 +66,14 @@ namespace hex {
} else {
s_settings = nlohmann::json::parse(data);
}
for (const auto &[category, rest] : *impl::s_onChangeCallbacks) {
for (const auto &[name, callbacks] : rest) {
for (const auto &[id, callback] : callbacks) {
callback(getSetting(category, name, {}));
}
}
}
}
void store() {