From 8b2bc246dd328d21eeb363af5524277f7ff7cdd7 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sun, 18 Aug 2024 11:43:42 -0700 Subject: [PATCH] Add change events for all keys --- Meshtastic/Views/Settings/Config/SecurityConfig.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Meshtastic/Views/Settings/Config/SecurityConfig.swift b/Meshtastic/Views/Settings/Config/SecurityConfig.swift index 6e4c1168..94f3da04 100644 --- a/Meshtastic/Views/Settings/Config/SecurityConfig.swift +++ b/Meshtastic/Views/Settings/Config/SecurityConfig.swift @@ -120,6 +120,12 @@ struct SecurityConfig: View { .onChange(of: adminChannelEnabled) { if $0 != node?.securityConfig?.adminChannelEnabled { hasChanges = true } } + .onChange(of: publicKey) { _ in + hasChanges = true + } + .onChange(of: privateKey) { _ in + hasChanges = true + } .onChange(of: adminKey) { _ in hasChanges = true }