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) {
|
Button(role: .destructive) {
|
||||||
handler.host.key = handler.getHostkey()
|
handler.host.key = handler.getHostkey()
|
||||||
handler.disconnect()
|
handler.disconnect()
|
||||||
handler.go()
|
// handler.go()
|
||||||
showTerminal = checkShell(handler.state)
|
// showTerminal = checkShell(handler.state)
|
||||||
} label: {
|
} label: {
|
||||||
Text("Accept Hostkey")
|
Text("Accept Hostkey")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ struct ShellTabView: View {
|
|||||||
for session in container.sessions.values {
|
for session in container.sessions.values {
|
||||||
session.handler.disconnect()
|
session.handler.disconnect()
|
||||||
}
|
}
|
||||||
|
container.sessions.removeAll()
|
||||||
dismiss()
|
dismiss()
|
||||||
} label: {
|
} label: {
|
||||||
TrafficLightRed()
|
TrafficLightRed()
|
||||||
|
|||||||
Reference in New Issue
Block a user