forked from quickshell/quickshell
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
|
@ -131,10 +131,10 @@ public:
|
|||
void classBegin() override {}
|
||||
void componentComplete() override;
|
||||
|
||||
void postReload();
|
||||
virtual void onPostReload() = 0;
|
||||
|
||||
static void postReloadTree(QObject* root);
|
||||
public slots:
|
||||
void postReload();
|
||||
|
||||
protected:
|
||||
bool isPostReload = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue