From 773c0bdfa461ad6a3c0e954141e64f83028c963c Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Mon, 28 Jul 2025 17:13:55 -0700 Subject: [PATCH] Show save button when unmessagable changes --- Meshtastic/Views/Settings/UserConfig.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Meshtastic/Views/Settings/UserConfig.swift b/Meshtastic/Views/Settings/UserConfig.swift index 34238ad9..54001b7b 100644 --- a/Meshtastic/Views/Settings/UserConfig.swift +++ b/Meshtastic/Views/Settings/UserConfig.swift @@ -222,6 +222,9 @@ struct UserConfig: View { .onChange(of: longName) { oldLong, newLong in if oldLong != newLong && newLong != node?.user?.longName ?? "Unknown" { hasChanges = true } } + .onChange(of: isUnmessagable) { oldIsUnmessagable, newIsUnmessagable in + if oldIsUnmessagable != newIsUnmessagable && newIsUnmessagable != node?.user?.unmessagable ?? true { hasChanges = true } + } .onChange(of: isLicensed) { _, newIsLicensed in if node != nil && node!.user != nil { if newIsLicensed != node?.user!.isLicensed {