Dont show crash reporting toggle on mac where it is not used (#1430)

This commit is contained in:
Garth Vander Houwen 2025-09-27 08:25:45 -07:00 committed by GitHub
parent 957b95015b
commit 863fe74ae1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")