mirror of
https://github.com/Eugeny/tabby
synced 2025-03-04 23:27:19 +00:00
.
This commit is contained in:
parent
9312db1fc6
commit
a26b38f5ae
1 changed files with 3 additions and 0 deletions
|
@ -340,6 +340,9 @@ export class TerminalTabComponent extends BaseTabComponent {
|
|||
}
|
||||
|
||||
async canClose (): Promise<boolean> {
|
||||
if (this.hostApp.platform === Platform.Windows) {
|
||||
return true
|
||||
}
|
||||
let children = await this.session.getChildProcesses()
|
||||
if (children.length === 0) {
|
||||
return true
|
||||
|
|
Loading…
Add table
Reference in a new issue