functions to get hosts and indexes matching input, and to update a host

added a hostkey checker - fatalerror rn
reordered ui in connection view to make more sense
added sections
moved connect button to toolbar, disconect is there too!
hostsview update
This commit is contained in:
neon443
2025-06-21 11:03:30 +01:00
parent 57c6b6005b
commit d982d018b8
4 changed files with 162 additions and 125 deletions

View File

@@ -17,7 +17,7 @@ class SSHHandler: ObservableObject {
@Published var connected: Bool = false
@Published var authorized: Bool = false
@Published var testSuceeded: Bool = false
@Published var testSuceeded: Bool? = nil
@Published var host: Host
@Published var terminal: String = ""
@@ -86,8 +86,9 @@ class SSHHandler: ObservableObject {
ssh_free(session)
withAnimation { authorized = false }
withAnimation { connected = false }
withAnimation { testSuceeded = nil }
session = nil
host.key = nil
// host.key = nil
}
func testExec() {