This commit is contained in:
Eugene Pankov 2017-07-24 15:34:30 +02:00
parent 9312db1fc6
commit a26b38f5ae

View file

@ -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