From 6031bb49537e2681fc1c525c143d0a90a7aa8f83 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 28 Sep 2025 12:05:42 +0200 Subject: [PATCH] left sidebar: consider closed when floating window is closed --- .config/quickshell/ii/modules/sidebarLeft/SidebarLeft.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/ii/modules/sidebarLeft/SidebarLeft.qml b/.config/quickshell/ii/modules/sidebarLeft/SidebarLeft.qml index 0aed7b75d..8d0a43a05 100644 --- a/.config/quickshell/ii/modules/sidebarLeft/SidebarLeft.qml +++ b/.config/quickshell/ii/modules/sidebarLeft/SidebarLeft.qml @@ -127,8 +127,12 @@ Scope { // Scope sourceComponent: FloatingWindow { id: detachedSidebarRoot - visible: GlobalStates.sidebarLeftOpen property var contentParent: detachedSidebarBackground + + visible: GlobalStates.sidebarLeftOpen + onVisibleChanged: { + if (!visible) GlobalStates.sidebarLeftOpen = false; + } Rectangle { id: detachedSidebarBackground