mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-25 02:07:28 -05:00
left sidebar: consider closed when floating window is closed
This commit is contained in:
@@ -127,8 +127,12 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user