on xenial help sign in
Fixed indicator header title
commite0c01f449cddb0de2ae37a8c66f5ebd6fbf21d14 authorNick Dedekind <nicholas.dedekind@gmail.com> dateThu 27 Jun 2013, 11:33 (13 years ago) parent7e71b7d
1 file changed+8−1
Panel/MenuContent.qml+8−1
Panel/MenuContent.qml+8−1
@@ -16,6 +16,7 @@
1616
1717import QtQuick 2.0
1818import Ubuntu.Components 0.1
19+import Unity.Indicators 0.1 as Indicators
1920import "Menus"
2021import "../Components"
2122
@@ -179,7 +180,13 @@ Rectangle {
179180 left: parent.left
180181 right: parent.right
181182 }
182− text: content.overviewActive ? i18n.tr("Device") : (indicatorsModel && menus.currentIndex >= 0 && menus.currentIndex < indicatorsModel.count) ? indicatorsModel.get(menus.currentIndex).title : ""
183+ text: {
184+ if (content.overviewActive)
185+ return i18n.tr("Device");
186+ if (indicatorsModel && menus.currentIndex >= 0 && menus.currentIndex < indicatorsModel.count)
187+ return indicatorsModel.data(menus.currentIndex, Indicators.IndicatorsModel.Title);
188+ return "";
189+ }
183190 opacity: __shown ? 1 : 0
184191 Behavior on opacity {NumberAnimation{duration: 100}}
185192 }