1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-08 13:32:05 -04:00

process list: fix unloading

fixes #2284
This commit is contained in:
bbedward
2026-05-03 09:52:50 -04:00
parent 63c3523ae1
commit 6f4940bc66
2 changed files with 16 additions and 0 deletions

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();
}
}
}
}

View File

@@ -629,6 +629,13 @@ Singleton {
processListModal?.hide();
}
function unloadProcessListModal() {
if (processListModalLoader) {
processListModal = null;
processListModalLoader.active = false;
}
}
function toggleProcessListModal() {
if (processListModal) {
processListModal.toggle();