mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 14:04:56 +00:00
resolves Eugeny/tabby#7751, Eugeny/tabby#8062, Eugeny/tabby#6617 add behavior when session ends
This commit is contained in:
@@ -71,7 +71,7 @@ export class TerminalTabComponent extends BaseTerminalTabComponent<LocalProfile>
|
||||
height: rows,
|
||||
})
|
||||
|
||||
this.setSession(session, true)
|
||||
this.setSession(session)
|
||||
this.recoveryStateChangedHint.next()
|
||||
}
|
||||
|
||||
@@ -127,4 +127,12 @@ export class TerminalTabComponent extends BaseTerminalTabComponent<LocalProfile>
|
||||
super.ngOnDestroy()
|
||||
this.session?.destroy()
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the user explicitly exit the session.
|
||||
* Always return true for terminalTab as the session can only be ended by the user
|
||||
*/
|
||||
protected isSessionExplicitlyTerminated (): boolean {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user