From 2b5976f20253c02f5042e4d5ca9cf33c25ff8e75 Mon Sep 17 00:00:00 2001 From: Clem Fern Date: Fri, 12 May 2023 19:30:24 +0200 Subject: [PATCH] =?UTF-8?q?ref(connectable=20tab)=20reconnect=20context=20?= =?UTF-8?q?menu=20&=20hotkey=20n=C2=B02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tabby-serial/src/components/serialTab.component.ts | 8 ++------ tabby-ssh/src/components/sshTab.component.ts | 6 ------ tabby-telnet/src/components/telnetTab.component.ts | 6 ------ 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/tabby-serial/src/components/serialTab.component.ts b/tabby-serial/src/components/serialTab.component.ts index 47e90815..7a04b599 100644 --- a/tabby-serial/src/components/serialTab.component.ts +++ b/tabby-serial/src/components/serialTab.component.ts @@ -59,6 +59,8 @@ export class SerialTabComponent extends ConnectableTerminalTabComponent { - this.session?.destroy() - await this.initializeSession() - this.session?.releaseInitialDataBuffer() - } - async changeBaudRate () { const rate = await this.selector.show( this.translate.instant(_('Baud rate')), diff --git a/tabby-ssh/src/components/sshTab.component.ts b/tabby-ssh/src/components/sshTab.component.ts index f024ce8c..eae39e4e 100644 --- a/tabby-ssh/src/components/sshTab.component.ts +++ b/tabby-ssh/src/components/sshTab.component.ts @@ -212,12 +212,6 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent modal.session = this.sshSession! } - async reconnect (): Promise { - this.session?.destroy() - await this.initializeSession() - this.session?.releaseInitialDataBuffer() - } - async canClose (): Promise { if (!this.session?.open) { return true diff --git a/tabby-telnet/src/components/telnetTab.component.ts b/tabby-telnet/src/components/telnetTab.component.ts index 3b589ccd..cfa6f7f0 100644 --- a/tabby-telnet/src/components/telnetTab.component.ts +++ b/tabby-telnet/src/components/telnetTab.component.ts @@ -94,12 +94,6 @@ export class TelnetTabComponent extends ConnectableTerminalTabComponent { - this.session?.destroy() - await this.initializeSession() - this.session?.releaseInitialDataBuffer() - } - async canClose (): Promise { if (!this.session?.open) { return true