mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-02 11:44:01 +03:00
fixed instantiating saved layouts - fixes #4413
This commit is contained in:
parent
f53eb31274
commit
3fe2dccb94
@ -174,6 +174,9 @@ export class AppService {
|
|||||||
* @param inputs Properties to be assigned on the new tab component instance
|
* @param inputs Properties to be assigned on the new tab component instance
|
||||||
*/
|
*/
|
||||||
openNewTab <T extends BaseTabComponent> (params: NewTabParameters<T>): T {
|
openNewTab <T extends BaseTabComponent> (params: NewTabParameters<T>): T {
|
||||||
|
if (params.type === SplitTabComponent) {
|
||||||
|
return this.openNewTabRaw(params)
|
||||||
|
}
|
||||||
const splitTab = this.tabsService.create({ type: SplitTabComponent })
|
const splitTab = this.tabsService.create({ type: SplitTabComponent })
|
||||||
const tab = this.tabsService.create(params)
|
const tab = this.tabsService.create(params)
|
||||||
splitTab.addTab(tab, null, 'r')
|
splitTab.addTab(tab, null, 'r')
|
||||||
|
Loading…
Reference in New Issue
Block a user