mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-10 14:30:03 +00:00
restore all split tab children at once
This commit is contained in:
parent
6c8d00eb16
commit
9e8c0ccb14
@ -258,12 +258,13 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
|||||||
if (this._recoveredState) {
|
if (this._recoveredState) {
|
||||||
await this.recoverContainer(this.root, this._recoveredState)
|
await this.recoverContainer(this.root, this._recoveredState)
|
||||||
this.layout()
|
this.layout()
|
||||||
setImmediate(() => {
|
setTimeout(() => {
|
||||||
if (this.hasFocus) {
|
if (this.hasFocus) {
|
||||||
this.getAllTabs().forEach(x => x.emitFocused())
|
for (const tab of this.getAllTabs()) {
|
||||||
this.focusAnyIn(this.root)
|
this.focus(tab)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
}, 100)
|
||||||
}
|
}
|
||||||
this.initialized.next()
|
this.initialized.next()
|
||||||
this.initialized.complete()
|
this.initialized.complete()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user