mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Key match warning search on first appear
This commit is contained in:
parent
197b567db0
commit
5c8eea9ea8
3 changed files with 3 additions and 3 deletions
|
|
@ -225,7 +225,7 @@ struct UserList: View {
|
|||
.onChange(of: maxDistance) { _ in
|
||||
searchUserList()
|
||||
}
|
||||
.onAppear {
|
||||
.onFirstAppear {
|
||||
searchUserList()
|
||||
}
|
||||
.safeAreaInset(edge: .bottom, alignment: .trailing) {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ struct NodeDetail: View {
|
|||
}
|
||||
Section("Node") {
|
||||
if let user = node.user {
|
||||
if user.keyMatch {
|
||||
if !user.keyMatch {
|
||||
Label {
|
||||
VStack(alignment: .leading) {
|
||||
Text("Public Key Mismatch")
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@ struct NodeList: View {
|
|||
self.selectedNode = nil
|
||||
}
|
||||
}
|
||||
.onAppear {
|
||||
.onFirstAppear {
|
||||
Task {
|
||||
await searchNodeList()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue