From 64fa08789b5a340c63550002c676e28b4c8c1f72 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Fri, 17 Jun 2022 22:05:42 -0700 Subject: [PATCH] Fix node detail selected node on mac --- MeshtasticApple/Views/Nodes/NodeList.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MeshtasticApple/Views/Nodes/NodeList.swift b/MeshtasticApple/Views/Nodes/NodeList.swift index 0a3d2916..f1a7762e 100644 --- a/MeshtasticApple/Views/Nodes/NodeList.swift +++ b/MeshtasticApple/Views/Nodes/NodeList.swift @@ -105,7 +105,8 @@ struct NodeList: View { self.bleManager.context = context self.bleManager.userSettings = userSettings - if UIDevice.current.userInterfaceIdiom == .pad { + if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac { + if nodes.count > 0 { selection = "0" }