mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-29 03:05:05 +00:00
fix: root is now destroyed on exit
This should fix a whole lot of things never being able to run cleanup.
This commit is contained in:
2 files changed
+8
No files matched your search
@@ -26,6 +26,11 @@ RootWrapper::RootWrapper(QString rootPath)
|
||||
}
|
||||
}
|
||||
|
||||
RootWrapper::~RootWrapper() {
|
||||
// event loop may no longer be running so deleteLater is not an option
|
||||
delete this->root;
|
||||
}
|
||||
|
||||
void RootWrapper::reloadGraph(bool hard) {
|
||||
if (this->root != nullptr) {
|
||||
this->engine.clearComponentCache();
|
||||
|
||||
Reference in new issue
Block a user