mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-15 06:30:13 +08:00
fixes
This commit is contained in:
parent
b2fc016aa8
commit
7a895dda1a
@ -37,7 +37,7 @@ export class ShellSettingsTabComponent {
|
||||
this.isConPTYStable = isWindowsBuild(WIN_BUILD_CONPTY_STABLE)
|
||||
}
|
||||
|
||||
async ngOnInit (): void {
|
||||
async ngOnInit (): Promise<void> {
|
||||
this.shells = await this.terminalService.shells$.toPromise()
|
||||
}
|
||||
|
||||
@ -45,7 +45,7 @@ export class ShellSettingsTabComponent {
|
||||
this.configSubscription.unsubscribe()
|
||||
}
|
||||
|
||||
async reload (): void {
|
||||
async reload (): Promise<void> {
|
||||
this.profiles = await this.terminalService.getProfiles(true)
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,9 @@ export class DebugDecorator extends TerminalDecorator {
|
||||
|
||||
private async doLoadState (terminal: TerminalTabComponent) {
|
||||
const data = await this.loadFile()
|
||||
terminal.frontend.restoreState(data)
|
||||
if (data) {
|
||||
terminal.frontend.restoreState(data)
|
||||
}
|
||||
}
|
||||
|
||||
private async doPasteState (terminal: TerminalTabComponent) {
|
||||
|
Loading…
Reference in New Issue
Block a user