cleaned up crashes and stuff from the alert message not getting a value

This commit is contained in:
neon443
2025-06-21 12:06:12 +01:00
parent 59e3a9e296
commit cf5feaacc2
2 changed files with 2 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ class SSHHandler: ObservableObject {
self.host.key = getHostkey() self.host.key = getHostkey()
} }
var verbosity: Int = SSH_LOG_FUNCTIONS var verbosity: Int = 0
session = ssh_new() session = ssh_new()
guard session != nil else { guard session != nil else {

View File

@@ -146,10 +146,7 @@ struct ConnectionView: View {
handler.host.key = hostsManager.getHostMatching(handler.host)?.key handler.host.key = hostsManager.getHostMatching(handler.host)?.key
} }
} message: { } message: {
Text(""" Text("Expected \(hostsManager.getHostMatching(handler.host)!.key?.base64EncodedString() ?? "null")\nbut recieved \(handler.host.key?.base64EncodedString() ?? "null" ) from the server")
Expected \(hostsManager.getHostMatching(handler.host)!.key!.base64EncodedString())
but recieved \(handler.host.key!.base64EncodedString()) from the server
""")
} }
.transition(.opacity) .transition(.opacity)
.toolbar { .toolbar {