forked from quickshell/quickshell
core/singleton: fix PostReloadHook in singletons
This commit is contained in:
parent
9f38908bdf
commit
31264ac7d1
4 changed files with 16 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue