mirror of
https://github.com/Eugeny/tabby.git
synced 2026-08-24 02:34:19 -05:00
fixed #11280 - "warn on tab close" global SSH setting not working
This commit is contained in:
@@ -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[]
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user