From 51070241dd0486cb9b69e173586cd32324d9d3a5 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 15 Sep 2026 14:40:10 +0200 Subject: fix(desktop): publish the drawer flag at startup onOpenChanged does not fire for the initial value, so a restart while the drawer was open left notifyd/drawer at "1" and every balloon stayed suppressed until a drawer open/close cycle. Write the starting state from Component.onCompleted so the file always reflects the drawer. --- desktop/Drawer.qml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'desktop/Drawer.qml') diff --git a/desktop/Drawer.qml b/desktop/Drawer.qml index 79a5393..3a862ba 100644 --- a/desktop/Drawer.qml +++ b/desktop/Drawer.qml @@ -44,6 +44,11 @@ Scope { onOpenChanged: drawerFlag.setText(root.open ? "1\n" : "0\n") + // onOpenChanged does not fire for the initial value, so a restart while + // the drawer was open would leave the flag stale and suppress every + // balloon. Publish the starting state explicitly. + Component.onCompleted: drawerFlag.setText(root.open ? "1\n" : "0\n") + readonly property var screenObj: Quickshell.screens.find(s => s.name === root.monitor) ?? Quickshell.screens[0] -- cgit v1.2.3