1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-02 02:23:12 +03:00

fixed instantiating saved layouts - fixes #4413

This commit is contained in:
Eugene Pankov 2021-08-14 23:34:01 +02:00
parent f53eb31274
commit 3fe2dccb94
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -174,6 +174,9 @@ export class AppService {
* @param inputs Properties to be assigned on the new tab component instance
*/
openNewTab <T extends BaseTabComponent> (params: NewTabParameters<T>): T {
if (params.type === SplitTabComponent) {
return this.openNewTabRaw(params)
}
const splitTab = this.tabsService.create({ type: SplitTabComponent })
const tab = this.tabsService.create(params)
splitTab.addTab(tab, null, 'r')