From 863fe74ae1cf9c15ccafc59ed02ac51ecc1162d8 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sat, 27 Sep 2025 08:25:45 -0700 Subject: [PATCH] Dont show crash reporting toggle on mac where it is not used (#1430) --- Meshtastic/Views/Settings/AppSettings.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Meshtastic/Views/Settings/AppSettings.swift b/Meshtastic/Views/Settings/AppSettings.swift index 43e89ae1..303d3939 100644 --- a/Meshtastic/Views/Settings/AppSettings.swift +++ b/Meshtastic/Views/Settings/AppSettings.swift @@ -42,6 +42,8 @@ struct AppSettings: View { Text("PKI based node administration, requires firmware version 2.5+") .foregroundStyle(.secondary) .font(.caption) +#if targetEnvironment(macCatalyst) +#else Toggle(isOn: $usageDataAndCrashReporting) { Label("Usage and Crash Data", systemImage: "pencil.and.list.clipboard") } @@ -49,7 +51,7 @@ struct AppSettings: View { Text("Provide anonymous usage statistics and crash reports.") .foregroundStyle(.secondary) .font(.caption) - +#endif if showAutoConnect { Toggle(isOn: autoconnectBinding) { Label("Automatically Connect", systemImage: "app.connected.to.app.below.fill")