fixed #11280 - "warn on tab close" global SSH setting not working

This commit is contained in:
Eugene
2026-05-17 19:54:52 +02:00
parent ecf2a487bc
commit 6a0c0fd3b4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export interface SSHProfileOptions extends LoginScriptsOptions {
skipBanner: boolean
jumpHost: string | null
agentForward: boolean
warnOnClose: boolean
warnOnClose: boolean | null
algorithms: Record<SSHAlgorithmType, string[]>
proxyCommand: string | null
forwardedPorts: ForwardedPortConfig[]
+1 -1
View File
@@ -198,7 +198,7 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent<SSHProfile>
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(