mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-30 03:15:05 +00:00
core/singleton: fix PostReloadHook in singletons
This commit is contained in:
4 files changed
+16
-6
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user