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() { Button() {
handler.go() handler.go()
showTerminal = checkShell(handler.state) showTerminal = checkShell(handler.state)
// if showTerminal { DispatchQueue.main.asyncAfter(deadline: .now()+0.1) {
// hostsManager.addToHistory(handler.host) guard checkShell(handler.state) else { return }
// handler.writeToChannel(hostsManager.snippets.first(where: { $0.id == handler.host.startupSnippetID })?.content) hostsManager.addToHistory(handler.host)
// } handler.writeToChannel(hostsManager.snippets.first(where: { $0.id == handler.host.startupSnippetID })?.content)
}
} label: { } label: {
Label("Connect", systemImage: "power") Label("Connect", systemImage: "power")
} }