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() {
|
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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user