fix passpharse

This commit is contained in:
neon443
2025-06-30 12:16:04 +01:00
parent 463ac768c2
commit 9c32778d01

View File

@@ -14,8 +14,6 @@ struct ConnectionView: View {
@State private var shellView: ShellView? = nil @State private var shellView: ShellView? = nil
@State var passphrase: String = ""
@State var pubkeyStr: String = "" @State var pubkeyStr: String = ""
@State var privkeyStr: String = "" @State var privkeyStr: String = ""
@@ -109,7 +107,7 @@ struct ConnectionView: View {
handler.host.privateKey = Data(newStr.utf8) handler.host.privateKey = Data(newStr.utf8)
} }
TextField("", text: $passphrase, prompt: Text("Passphrase (Optional)")) TextField("", text: $handler.host.passphrase, prompt: Text("Passphrase (Optional)"))
} }
Button() { Button() {