mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-29 03:05:05 +00:00
core/reloader: trigger postReload with a signal
A signal is now used over the previous tree-searching method as some QML components such as Repeater fail to reparent created children to themselves, which breaks the tree.
This commit is contained in:
6 files changed
+15
-16
No files matched your search
@@ -51,9 +51,3 @@ void SingletonRegistry::onReload(SingletonRegistry* old) {
|
||||
singleton->reload(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