mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 13:30:02 +00:00
Update baseTerminalTab.component.ts
This commit is contained in:
parent
eadd8d563e
commit
be0aeefdb3
@ -315,12 +315,12 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
||||
|
||||
setImmediate(async () => {
|
||||
if (this.hasFocus) {
|
||||
await this.frontend!.attach(this.content.nativeElement)
|
||||
this.frontend!.configure()
|
||||
await this.frontend?.attach(this.content.nativeElement)
|
||||
this.frontend?.configure()
|
||||
} else {
|
||||
this.focused$.pipe(first()).subscribe(async () => {
|
||||
await this.frontend!.attach(this.content.nativeElement)
|
||||
this.frontend!.configure()
|
||||
await this.frontend?.attach(this.content.nativeElement)
|
||||
this.frontend?.configure()
|
||||
})
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user