on change for node change

This commit is contained in:
Garth Vander Houwen 2025-06-28 10:11:31 -07:00
parent 6b666f337b
commit d7ce318b4d
2 changed files with 7 additions and 1 deletions

View file

@ -1328,6 +1328,9 @@
}
}
}
},
"• %@" : {
},
"< 1%" : {
"localizations" : {
@ -35105,4 +35108,4 @@
}
},
"version" : "1.0"
}
}

View file

@ -230,6 +230,9 @@ struct SecurityConfig: View {
name: "\(bleManager.connectedPeripheral?.shortName ?? "?")"
)
})
.onChange(of: node) { _, newNode in
setSecurityValues()
}
.onChange(of: isManaged) { _, newIsManaged in
if newIsManaged != node?.securityConfig?.isManaged { hasChanges = true }
}