diff --git a/lib/libimhex/source/api/content_registry.cpp b/lib/libimhex/source/api/content_registry.cpp index 564b702a7..f86c7cef5 100644 --- a/lib/libimhex/source/api/content_registry.cpp +++ b/lib/libimhex/source/api/content_registry.cpp @@ -106,15 +106,13 @@ namespace hex { if (!loaded) store(); - TaskManager::doLater([] { - for (const auto &[category, rest] : *impl::s_onChangeCallbacks) { - for (const auto &[name, callbacks] : rest) { - for (const auto &[id, callback] : callbacks) { - callback(getSetting(category, name, {})); - } + 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() {