on xenial help sign in
partially revert the string change

causing endless loops / freezes in QtQuick

commitad6346f306f2b0a506e6d957c6e5f448e7c95c94 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 3 Aug 2016, 18:51 (10 years ago) parent1679674
1 file changed+2−10
qml/Wizard/Pages/30-wifi.qml+2−10
qml/Wizard/Pages/30-wifi.qml+2−10
@@ -69,16 +69,6 @@ LocalComponents.Page {
6969 menuObjectPath: "/com/canonical/indicator/network/phone_wifi_settings"
7070 }
7171
72− onContentAnimationRunningChanged: {
73− // workaround to prevent an endless loop while animating the (possibly word wrapped) label in and the listview count changing
74− if (!contentAnimationRunning) {
75− label.text = listview.count > 0 ? i18n.tr("Select one of the available Wi-Fi networks to access the features and updates")
76− : i18n.tr("No available Wi-Fi networks");
77− } else {
78− label.text = "";
79− }
80− }
81−
8272 Component {
8373 id: accessPointComponent
8474 ListItem {
@@ -171,6 +161,8 @@ LocalComponents.Page {
171161 font.weight: Font.Light
172162 color: textColor
173163 wrapMode: Text.Wrap
164+ text: listview.count > 0 ? i18n.tr("Available Wi-Fi networks")
165+ : i18n.tr("No available Wi-Fi networks")
174166 }
175167
176168 ListView {