on xenial help sign in
Merge pull request #186 from ubports/xenial_-_edge_-_indicatortextbindingloop

Fix indicator text binding loop

commit50d1dd6abb029d885a249a5c04ad543647f97ad9 authorJan Sprinz <NeoTheThird@users.noreply.github.com> dateThu 5 Sep 2019, 22:20 (7 years ago) parent93f04f875645e1
1 file changed+2−2
qml/Panel/Indicators/IndicatorItem.qml+2−2
qml/Panel/Indicators/IndicatorItem.qml+2−2
@@ -23,7 +23,7 @@ IndicatorDelegate {
2323 id: root
2424
2525 property string identifier
26− property string title: indicatorName.text
26+ property alias title: indicatorName.text
2727 property alias leftLabel: leftLabelItem.text
2828 property alias rightLabel: rightLabelItem.text
2929 property var icons: undefined
@@ -146,7 +146,7 @@ IndicatorDelegate {
146146 anchors.horizontalCenter: parent.horizontalCenter
147147 width: contentWidth > 0 ? contentWidth + units.gu(1) : 0
148148
149− text: title !== "" ? title : identifier
149+ text: identifier
150150 fontSize: "x-small"
151151 font.weight: Font.Light
152152 horizontalAlignment: Text.AlignHCenter