From 978e39cb3bbbbf9d6f416efec51be412597bd9e0 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Tue, 5 Aug 2025 11:39:51 +0100 Subject: [PATCH] cant figure out why the wierd keyboard issue happens, disabled auto reconnect on accepting the key. fix the ghost sessions --- ShhShell/Views/Hosts/ConnectionView.swift | 4 ++-- ShhShell/Views/Terminal/ShellTabView.swift | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ShhShell/Views/Hosts/ConnectionView.swift b/ShhShell/Views/Hosts/ConnectionView.swift index 52ed7fb..1dad412 100644 --- a/ShhShell/Views/Hosts/ConnectionView.swift +++ b/ShhShell/Views/Hosts/ConnectionView.swift @@ -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") } diff --git a/ShhShell/Views/Terminal/ShellTabView.swift b/ShhShell/Views/Terminal/ShellTabView.swift index 99d567c..07380b1 100644 --- a/ShhShell/Views/Terminal/ShellTabView.swift +++ b/ShhShell/Views/Terminal/ShellTabView.swift @@ -52,6 +52,7 @@ struct ShellTabView: View { for session in container.sessions.values { session.handler.disconnect() } + container.sessions.removeAll() dismiss() } label: { TrafficLightRed()