WIP: Network #129
+6
-2
@@ -12,8 +12,12 @@ Singleton {
|
|||||||
readonly property list<Network> knownNetworks: networks.filter(n => n.known)
|
readonly property list<Network> knownNetworks: networks.filter(n => n.known)
|
||||||
readonly property list<Network> networks: {
|
readonly property list<Network> networks: {
|
||||||
const list = [];
|
const list = [];
|
||||||
for (const d of wifiDevices)
|
for (const d of wifiDevices) {
|
||||||
list.push(...d.networks.values);
|
for (const n of d.networks.values) {
|
||||||
|
if (!list.includes(n))
|
||||||
|
list.push(n);
|
||||||
|
}
|
||||||
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
property bool scanning: false
|
property bool scanning: false
|
||||||
|
|||||||
Reference in New Issue
Block a user