1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 11:38:30 -04:00

settings: fix close IPC

fixes #2912
port 1.5

(cherry picked from commit 5854327c28)
This commit is contained in:
bbedward
2026-07-23 14:09:38 -04:00
committed by dms-ci[bot]
parent f457e04cb1
commit f89fb67316
2 changed files with 12 additions and 6 deletions
+11 -5
View File
@@ -41,6 +41,9 @@ FloatingWindow {
signal closingModal
function show() {
if (visible && !backingWindowVisible) {
visible = false;
}
visible = true;
}
@@ -49,7 +52,11 @@ FloatingWindow {
}
function toggle() {
visible = !visible;
if (visible && backingWindowVisible) {
hide();
return;
}
show();
}
function setTabIndex(tabIndex: int) {
@@ -61,13 +68,12 @@ FloatingWindow {
function showWithTab(tabIndex: int) {
setTabIndex(tabIndex);
visible = true;
show();
}
function showWithTabName(tabName: string) {
var idx = sidebar.resolveTabIndex(tabName);
setTabIndex(idx);
visible = true;
setTabIndex(sidebar.resolveTabIndex(tabName));
show();
}
function resolveTabIndex(tabName: string): int {