diff --git a/tabby-terminal/src/api/baseTerminalTab.component.ts b/tabby-terminal/src/api/baseTerminalTab.component.ts index 450f4644..c1adf56d 100644 --- a/tabby-terminal/src/api/baseTerminalTab.component.ts +++ b/tabby-terminal/src/api/baseTerminalTab.component.ts @@ -789,7 +789,7 @@ export class BaseTerminalTabComponent

extends Bas * Method called when session is closed. */ protected onSessionClosed (destroyOnSessionClose = false): void { - if (destroyOnSessionClose || this.doesTabShouldBeDestroyedOnSessionClosed()) { + if (destroyOnSessionClose || this.shouldTabBeDestroyedOnSessionClose()) { this.destroy() } } @@ -797,12 +797,9 @@ export class BaseTerminalTabComponent

extends Bas /** * Return true if tab should be destroyed on session closed. */ - protected doesTabShouldBeDestroyedOnSessionClosed (): boolean { + protected shouldTabBeDestroyedOnSessionClose (): boolean { const behavior = this.profile.behaviorOnSessionEnd - if (behavior === 'close' || behavior === 'auto' && this.isSessionExplicitlyTerminated()) { - return true - } - return false + return behavior === 'close' || behavior === 'auto' && this.isSessionExplicitlyTerminated() } /** diff --git a/tabby-terminal/src/api/connectableTerminalTab.component.ts b/tabby-terminal/src/api/connectableTerminalTab.component.ts index 837bd5ed..97560ec1 100644 --- a/tabby-terminal/src/api/connectableTerminalTab.component.ts +++ b/tabby-terminal/src/api/connectableTerminalTab.component.ts @@ -68,7 +68,7 @@ export abstract class ConnectableTerminalTabComponent

{