From 6a0c0fd3b40ede6a9674d66514f3a7deee46afd7 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sun, 17 May 2026 19:54:52 +0200 Subject: [PATCH] fixed #11280 - "warn on tab close" global SSH setting not working --- tabby-ssh/src/api/interfaces.ts | 2 +- tabby-ssh/src/components/sshTab.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tabby-ssh/src/api/interfaces.ts b/tabby-ssh/src/api/interfaces.ts index 1024b8b4..ab66c4ea 100644 --- a/tabby-ssh/src/api/interfaces.ts +++ b/tabby-ssh/src/api/interfaces.ts @@ -27,7 +27,7 @@ export interface SSHProfileOptions extends LoginScriptsOptions { skipBanner: boolean jumpHost: string | null agentForward: boolean - warnOnClose: boolean + warnOnClose: boolean | null algorithms: Record proxyCommand: string | null forwardedPorts: ForwardedPortConfig[] diff --git a/tabby-ssh/src/components/sshTab.component.ts b/tabby-ssh/src/components/sshTab.component.ts index 6e91cca8..79fa129a 100644 --- a/tabby-ssh/src/components/sshTab.component.ts +++ b/tabby-ssh/src/components/sshTab.component.ts @@ -198,7 +198,7 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent if (!this.session?.open) { return true } - if (!this.profile.options.warnOnClose) { + if (!(this.profile.options.warnOnClose ?? this.config.store.ssh.warnOnClose)) { return true } return (await this.platform.showMessageBox(