forked from quickshell/quickshell
core/reloader: fix Reloadable::onReload being called multiple times
onReload was called multiple times due to Reloadable::reloadRecursive calling onReload instead of reload, which didn't set reloadComplete. This allowed the componentComplete fallback to call reload later.
This commit is contained in:
parent
49b309247d
commit
c758421af6
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ void Reloadable::reloadRecursive(QObject* newObj, QObject* oldRoot) {
|
|||
|
||||
// pass handling to the child's onReload, which should call back into reloadRecursive,
|
||||
// with its oldInstance becoming the new oldRoot.
|
||||
reloadable->onReload(oldInstance);
|
||||
reloadable->reload(oldInstance);
|
||||
} else if (newObj != nullptr) {
|
||||
Reloadable::reloadChildrenRecursive(newObj, oldRoot);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue