Fix clicks

This commit is contained in:
David Heinemeier Hansson
2026-05-24 15:44:38 +02:00
parent d6113e5133
commit cac3342868
2 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ import qs.Ui
BarIndicator {
id: root
readonly property var notificationService: bar.shell.firstPartyServiceFor("omarchy.notifications")
readonly property var notificationService: bar && bar.shell && typeof bar.shell.firstPartyServiceFor === "function"
? bar.shell.firstPartyServiceFor("omarchy.notifications")
: null
readonly property bool dnd: notificationService ? notificationService.doNotDisturb : false
active: dnd
+6 -1
View File
@@ -403,6 +403,7 @@ BarWidget {
property bool activeStateObserved: false
readonly property string indicatorId: root.entryId(entry)
readonly property var indicatorSettings: root.entrySettings(entry)
readonly property var barRef: root.bar
implicitWidth: indicatorSource.item && indicatorSource.item.visible ? indicatorSource.item.implicitWidth : 0
implicitHeight: indicatorSource.item && indicatorSource.item.visible ? indicatorSource.item.implicitHeight : 0
@@ -415,8 +416,12 @@ BarWidget {
}
onIndicatorBlockChanged: injectProps()
onIndicatorSettingsChanged: injectProps()
onIndicatorsModuleChanged: syncActiveState()
onIndicatorsModuleChanged: {
injectProps()
syncActiveState()
}
onReportActiveStateChanged: syncActiveState()
onBarRefChanged: injectProps()
Loader {
id: indicatorSource