mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
cant figure out why the wierd keyboard issue happens, disabled auto reconnect on accepting the key.
fix the ghost sessions
This commit is contained in:
@@ -113,8 +113,8 @@ struct ConnectionView: View {
|
||||
Button(role: .destructive) {
|
||||
handler.host.key = handler.getHostkey()
|
||||
handler.disconnect()
|
||||
handler.go()
|
||||
showTerminal = checkShell(handler.state)
|
||||
// handler.go()
|
||||
// showTerminal = checkShell(handler.state)
|
||||
} label: {
|
||||
Text("Accept Hostkey")
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ struct ShellTabView: View {
|
||||
for session in container.sessions.values {
|
||||
session.handler.disconnect()
|
||||
}
|
||||
container.sessions.removeAll()
|
||||
dismiss()
|
||||
} label: {
|
||||
TrafficLightRed()
|
||||
|
||||
Reference in New Issue
Block a user