mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Show save button when unmessagable changes
This commit is contained in:
parent
8812ef4c11
commit
773c0bdfa4
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue