mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-30 03:15:05 +00:00
core/reloader: fix late creation of Reloadable types
This commit is contained in:
13 files changed
+87
-48
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user