feat: don't add the same network twice
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 30s
Python / lint-format (pull_request) Successful in 48s
Python / test (pull_request) Successful in 40s
C++ / build (pull_request) Successful in 2m8s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m13s

This commit is contained in:
2026-07-02 22:09:25 +02:00
parent 2a4bd3dfdd
commit 8dc9753e2b
+6 -2
View File
@@ -12,8 +12,12 @@ Singleton {
readonly property list<Network> knownNetworks: networks.filter(n => n.known)
readonly property list<Network> networks: {
const list = [];
for (const d of wifiDevices)
list.push(...d.networks.values);
for (const d of wifiDevices) {
for (const n of d.networks.values) {
if (!list.includes(n))
list.push(n);
}
}
return list;
}
property bool scanning: false