1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

process list: use onClosed signal to call hide()

fixes #2560
This commit is contained in:
bbedward
2026-07-02 14:55:09 -04:00
parent 8162e60475
commit db3615805c
+15 -10
View File
@@ -48,19 +48,22 @@ FloatingWindow {
log.warn("dgop is not available");
return;
}
if (visible) {
const modalTitle = I18n.tr("System Monitor", "sysmon window title");
for (const toplevel of ToplevelManager.toplevels.values) {
if (toplevel.title !== "System Monitor" && toplevel.title !== modalTitle)
continue;
if (toplevel.activated) {
hide();
return;
}
toplevel.activate();
if (!visible) {
show();
return;
}
const modalTitle = I18n.tr("System Monitor", "sysmon window title");
for (const toplevel of ToplevelManager.toplevels.values) {
if (toplevel.title !== "System Monitor" && toplevel.title !== modalTitle)
continue;
if (toplevel.activated) {
hide();
return;
}
toplevel.activate();
return;
}
hide();
show();
}
@@ -90,6 +93,8 @@ FloatingWindow {
color: Theme.surfaceContainer
visible: false
onClosed: hide()
onCurrentTabChanged: {
if (visible && currentTab === 0 && searchField.visible)
searchField.forceActiveFocus();