mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10: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:
parent
1644ed5e19
commit
0416032a7c
6 changed files with 15 additions and 16 deletions
|
|
@ -161,8 +161,9 @@ void EngineGeneration::postReload() {
|
|||
if (this->engine == nullptr || this->root == nullptr) return;
|
||||
|
||||
QsEnginePlugin::runOnReload();
|
||||
PostReloadHook::postReloadTree(this->root);
|
||||
this->singletonRegistry.onPostReload();
|
||||
|
||||
emit this->firePostReload();
|
||||
QObject::disconnect(this, &EngineGeneration::firePostReload, nullptr, nullptr);
|
||||
}
|
||||
|
||||
void EngineGeneration::setWatchingFiles(bool watching) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue