@@ -72,7 +72,7 @@ LocalComponents.Page {
72 id: accessPointComponent
72 id: accessPointComponent
73 ListItem {
73 ListItem {
74 id: accessPoint
74 id: accessPoint
75− objectName: getObjectName()
75+ objectName: "accessPoint_" + apName.text.toLowerCase().replace(/\s+/g, '_')
76 highlightColor: backgroundColor
76 highlightColor: backgroundColor
77 enabled: menuData && menuData.sensitive || false
77 enabled: menuData && menuData.sensitive || false
78 divider.colorFrom: dividerColor
78 divider.colorFrom: dividerColor
@@ -93,10 +93,6 @@ LocalComponents.Page {
93 readonly property int signalStrength: strengthAction.valid ? strengthAction.state : 0
93 readonly property int signalStrength: strengthAction.valid ? strengthAction.state : 0
94 property int menuIndex: -1
94 property int menuIndex: -1
96− function getObjectName() {
97− "accessPoint_" + apName.text.toLowerCase().replace(/\s+/g, '_')
100 function loadAttributes() {
96 function loadAttributes() {
101 if (!unityMenuModel || menuIndex == -1) return;
97 if (!unityMenuModel || menuIndex == -1) return;
102 unityMenuModel.loadExtendedAttributes(menuIndex, {'x-canonical-wifi-ap-is-adhoc': 'bool',
98 unityMenuModel.loadExtendedAttributes(menuIndex, {'x-canonical-wifi-ap-is-adhoc': 'bool',