From 8dc9753e2b16548a631198b2a4332c92ef88ae12 Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 2 Jul 2026 22:09:25 +0200 Subject: [PATCH] feat: don't add the same network twice --- Helpers/Network.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Helpers/Network.qml b/Helpers/Network.qml index 695fa0f..d4678f4 100644 --- a/Helpers/Network.qml +++ b/Helpers/Network.qml @@ -12,8 +12,12 @@ Singleton { readonly property list knownNetworks: networks.filter(n => n.known) readonly property list 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