Merge pull request #1332 from meshtastic/2.6.16

Show save button when unmessagable changes
This commit is contained in:
Garth Vander Houwen 2025-07-28 17:15:18 -07:00 committed by GitHub
commit 26f5be52d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {