Always show peer add button

This commit is contained in:
Neil Alexander 2024-06-23 17:24:19 +01:00
parent b0c3d045a3
commit f0c29a8a3e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -98,7 +98,6 @@ struct PeersView: View {
.navigationTitle("Peers") .navigationTitle("Peers")
#if os(iOS) #if os(iOS)
.toolbar { .toolbar {
if editMode!.wrappedValue.isEditing {
Button("Add", systemImage: "plus") { Button("Add", systemImage: "plus") {
//appDelegate.yggdrasilConfig.peers.append("") //appDelegate.yggdrasilConfig.peers.append("")
addPeerURI = "" addPeerURI = ""
@ -111,7 +110,6 @@ struct PeersView: View {
} message: { } message: {
Text("Specify the peer URI to add.") Text("Specify the peer URI to add.")
} }
}
EditButton() EditButton()
.onChange(of: editMode!.wrappedValue) { edit in .onChange(of: editMode!.wrappedValue) { edit in
if !edit.isEditing { if !edit.isEditing {