core/reloader: fix late creation of Reloadable types

This commit is contained in:
outfoxxed committed 2024-04-19 15:45:07 -07:00
1 parent 61812343f5
commit 6eb68d2cd7
13 files changed
+87 -48

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ void SingletonRegistry::registerSingleton(const QUrl& url, Singleton* singleton)
void SingletonRegistry::onReload(SingletonRegistry* old) {
for (auto [url, singleton]: this->registry.asKeyValueRange()) {
singleton->onReload(old == nullptr ? nullptr : old->registry.value(url));
singleton->reload(old == nullptr ? nullptr : old->registry.value(url));
}
}