on xenial help sign in
fix for notification led (#359)

Adjust variable order on hasMessages to resolve misbehaving notification LED behavior.

commit76f577d89b7bdc2a80ffac2099ccebc2e59202c4 authorWillem-Jan de Hoog <wdehoog@exalondelft.nl> dateTue 26 Jan 2021, 20:47 (6 years ago) parentac69b16
1 file changed+1−1
qml/Panel/Indicators/IndicatorsLight.qml+1−1
qml/Panel/Indicators/IndicatorsLight.qml+1−1
@@ -187,7 +187,7 @@ console.log("no support for Multicolor LED. " + indicatorState)
187187 actionGroup: _actionGroup
188188 actionName: "messages"
189189 Component.onCompleted: actionGroup.start()
190− property bool hasMessages: valid && (String(icons).indexOf("indicator-messages-new") != -1)
190+ property bool hasMessages: (String(icons).indexOf("indicator-messages-new") != -1) && valid
191191 onHasMessagesChanged: {
192192 root.hasMessages = hasMessages
193193 updateLightState("onHasMessagesChanged")