left sidebar: consider closed when floating window is closed

This commit is contained in:
end-4
2025-09-28 12:05:42 +02:00
parent 05dc53b396
commit 6031bb4953
@@ -127,9 +127,13 @@ Scope { // Scope
sourceComponent: FloatingWindow { sourceComponent: FloatingWindow {
id: detachedSidebarRoot id: detachedSidebarRoot
visible: GlobalStates.sidebarLeftOpen
property var contentParent: detachedSidebarBackground property var contentParent: detachedSidebarBackground
visible: GlobalStates.sidebarLeftOpen
onVisibleChanged: {
if (!visible) GlobalStates.sidebarLeftOpen = false;
}
Rectangle { Rectangle {
id: detachedSidebarBackground id: detachedSidebarBackground
anchors.fill: parent anchors.fill: parent