This commit is contained in:
neon443
2025-09-01 17:17:38 +01:00
parent 4cd74c2633
commit 005b1ed9c9

View File

@@ -143,10 +143,11 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil")
Button() {
handler.go()
showTerminal = checkShell(handler.state)
// if showTerminal {
// hostsManager.addToHistory(handler.host)
// handler.writeToChannel(hostsManager.snippets.first(where: { $0.id == handler.host.startupSnippetID })?.content)
// }
DispatchQueue.main.asyncAfter(deadline: .now()+0.1) {
guard checkShell(handler.state) else { return }
hostsManager.addToHistory(handler.host)
handler.writeToChannel(hostsManager.snippets.first(where: { $0.id == handler.host.startupSnippetID })?.content)
}
} label: {
Label("Connect", systemImage: "power")
}