1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-10 12:16:34 +03:00

restore all split tab children at once

This commit is contained in:
Eugene Pankov 2020-08-16 18:30:42 +02:00
parent 6c8d00eb16
commit 9e8c0ccb14
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -258,12 +258,13 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
if (this._recoveredState) {
await this.recoverContainer(this.root, this._recoveredState)
this.layout()
setImmediate(() => {
setTimeout(() => {
if (this.hasFocus) {
this.getAllTabs().forEach(x => x.emitFocused())
this.focusAnyIn(this.root)
for (const tab of this.getAllTabs()) {
this.focus(tab)
}
}
})
}, 100)
}
this.initialized.next()
this.initialized.complete()