From e42b1ae500794a21a4edf4d9dfd8f03856775564 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Tue, 26 Mar 2024 09:21:47 -0700 Subject: [PATCH] force slelection of at least one option in the lora / mqtt filters --- Meshtastic/Views/Nodes/NodeList.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Meshtastic/Views/Nodes/NodeList.swift b/Meshtastic/Views/Nodes/NodeList.swift index a06aa681..0ab993c7 100644 --- a/Meshtastic/Views/Nodes/NodeList.swift +++ b/Meshtastic/Views/Nodes/NodeList.swift @@ -242,9 +242,15 @@ struct NodeList: View { searchNodeList() } .onChange(of: viaLora) { _ in + if !viaLora && !viaMqtt { + viaMqtt = true + } searchNodeList() } .onChange(of: viaMqtt) { _ in + if !viaLora && !viaMqtt { + viaLora = true + } searchNodeList() } .onChange(of: deviceRole) { _ in