don't include tab state in saved layouts

This commit is contained in:
Eugene Pankov
2022-01-10 20:39:29 +01:00
parent 3a11b51729
commit 61c11abda2
15 changed files with 38 additions and 82 deletions

View File

@@ -2,7 +2,7 @@
import colors from 'ansi-colors'
import { Component, Injector } from '@angular/core'
import { first } from 'rxjs'
import { Platform, SelectorService } from 'tabby-core'
import { GetRecoveryTokenOptions, Platform, SelectorService } from 'tabby-core'
import { BaseTerminalTabComponent } from 'tabby-terminal'
import { SerialSession, BAUD_RATES, SerialProfile } from '../api'
@@ -98,11 +98,11 @@ export class SerialTabComponent extends BaseTerminalTabComponent {
super.attachSessionHandlers()
}
async getRecoveryToken (): Promise<any> {
async getRecoveryToken (options?: GetRecoveryTokenOptions): Promise<any> {
return {
type: 'app:serial-tab',
profile: this.profile,
savedState: this.frontend?.saveState(),
savedState: options?.includeState && this.frontend?.saveState(),
}
}