forked from Shinonome/dots-hyprland
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