core/singleton: fix PostReloadHook in singletons

This commit is contained in:
outfoxxed committed 2024-03-20 01:37:30 -07:00
1 parent 9f38908bdf
commit 31264ac7d1
4 files changed
+16 -6

No files matched your search

+6
View File
@@ -51,3 +51,9 @@ void SingletonRegistry::onReload(SingletonRegistry* old) {
singleton->onReload(old == nullptr ? nullptr : old->registry.value(url));
}
}
void SingletonRegistry::onPostReload() {
for (auto* singleton: this->registry.values()) {
PostReloadHook::postReloadTree(singleton);
}
}