Fix clicks
This commit is contained in:
@@ -5,7 +5,9 @@ import qs.Ui
|
|||||||
BarIndicator {
|
BarIndicator {
|
||||||
id: root
|
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
|
readonly property bool dnd: notificationService ? notificationService.doNotDisturb : false
|
||||||
|
|
||||||
active: dnd
|
active: dnd
|
||||||
|
|||||||
@@ -403,6 +403,7 @@ BarWidget {
|
|||||||
property bool activeStateObserved: false
|
property bool activeStateObserved: false
|
||||||
readonly property string indicatorId: root.entryId(entry)
|
readonly property string indicatorId: root.entryId(entry)
|
||||||
readonly property var indicatorSettings: root.entrySettings(entry)
|
readonly property var indicatorSettings: root.entrySettings(entry)
|
||||||
|
readonly property var barRef: root.bar
|
||||||
|
|
||||||
implicitWidth: indicatorSource.item && indicatorSource.item.visible ? indicatorSource.item.implicitWidth : 0
|
implicitWidth: indicatorSource.item && indicatorSource.item.visible ? indicatorSource.item.implicitWidth : 0
|
||||||
implicitHeight: indicatorSource.item && indicatorSource.item.visible ? indicatorSource.item.implicitHeight : 0
|
implicitHeight: indicatorSource.item && indicatorSource.item.visible ? indicatorSource.item.implicitHeight : 0
|
||||||
@@ -415,8 +416,12 @@ BarWidget {
|
|||||||
}
|
}
|
||||||
onIndicatorBlockChanged: injectProps()
|
onIndicatorBlockChanged: injectProps()
|
||||||
onIndicatorSettingsChanged: injectProps()
|
onIndicatorSettingsChanged: injectProps()
|
||||||
onIndicatorsModuleChanged: syncActiveState()
|
onIndicatorsModuleChanged: {
|
||||||
|
injectProps()
|
||||||
|
syncActiveState()
|
||||||
|
}
|
||||||
onReportActiveStateChanged: syncActiveState()
|
onReportActiveStateChanged: syncActiveState()
|
||||||
|
onBarRefChanged: injectProps()
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: indicatorSource
|
id: indicatorSource
|
||||||
|
|||||||
Reference in New Issue
Block a user