mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
fix
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user