on xenial help sign in
and now the actual fix :)
commit0f8ce51c998c6cb21b69e95899f559586d7b001b authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 14 Dec 2015, 14:03 (11 years ago) parent98f333a
1 file changed+10−1
qml/Panel/Indicators/MenuItemFactory.qml+10−1
qml/Panel/Indicators/MenuItemFactory.qml+10−1
@@ -564,7 +564,16 @@ Item {
564564 active: serverChecked
565565 secure: getExtendedProperty(extendedData, "xCanonicalWifiApIsSecure", false)
566566 adHoc: getExtendedProperty(extendedData, "xCanonicalWifiApIsAdhoc", false)
567− signalStrength: strengthAction.valid ? strengthAction.state : 0
567+ signalStrength: {
568+ if (strengthAction.valid) {
569+ var state = strengthAction.state; // handle both int and uchar
570+ if (typeof state == "string") {
571+ return state.charCodeAt();
572+ }
573+ return state;
574+ }
575+ return 0;
576+ }
568577 highlightWhenPressed: false
569578
570579 onMenuModelChanged: {