process list: fix unloading

fixes #2284
This commit is contained in:
bbedward committed 2026-05-08 09:09:04 -04:00
1 parent 63c3523ae1
commit 6f4940bc66
2 files changed
+16

No files matched your search

+9
View File
@@ -808,10 +808,19 @@ Item {
ProcessListModal {
id: processListModal
property bool wasShown: false
Component.onCompleted: {
PopoutService.processListModal = processListModal;
}
onVisibleChanged: {
if (visible) {
wasShown = true;
} else if (wasShown) {
PopoutService.unloadProcessListModal();
}
}
}
}
+7
View File
@@ -629,6 +629,13 @@ Singleton {
processListModal?.hide();
}
function unloadProcessListModal() {
if (processListModalLoader) {
processListModal = null;
processListModalLoader.active = false;
}
}
function toggleProcessListModal() {
if (processListModal) {
processListModal.toggle();