forked from quickshell/quickshell
root: recreate the qml engine on reload instead of clearing it
This causes singletons to be recreated instead of kept alive.
This commit is contained in:
parent
9f6ef37f61
commit
463f9a297f
9 changed files with 109 additions and 78 deletions
|
@ -25,7 +25,7 @@ private slots:
|
|||
|
||||
private:
|
||||
QString rootPath;
|
||||
QQmlEngine engine;
|
||||
QQmlEngine* engine = nullptr;
|
||||
ShellRoot* root = nullptr;
|
||||
FiletreeWatcher* configWatcher = nullptr;
|
||||
QString originalWorkingDirectory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue