mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-30 08:19:54 +00: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)
|
this.isConPTYStable = isWindowsBuild(WIN_BUILD_CONPTY_STABLE)
|
||||||
}
|
}
|
||||||
|
|
||||||
async ngOnInit (): void {
|
async ngOnInit (): Promise<void> {
|
||||||
this.shells = await this.terminalService.shells$.toPromise()
|
this.shells = await this.terminalService.shells$.toPromise()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ export class ShellSettingsTabComponent {
|
|||||||
this.configSubscription.unsubscribe()
|
this.configSubscription.unsubscribe()
|
||||||
}
|
}
|
||||||
|
|
||||||
async reload (): void {
|
async reload (): Promise<void> {
|
||||||
this.profiles = await this.terminalService.getProfiles(true)
|
this.profiles = await this.terminalService.getProfiles(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,9 @@ export class DebugDecorator extends TerminalDecorator {
|
|||||||
|
|
||||||
private async doLoadState (terminal: TerminalTabComponent) {
|
private async doLoadState (terminal: TerminalTabComponent) {
|
||||||
const data = await this.loadFile()
|
const data = await this.loadFile()
|
||||||
terminal.frontend.restoreState(data)
|
if (data) {
|
||||||
|
terminal.frontend.restoreState(data)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async doPasteState (terminal: TerminalTabComponent) {
|
private async doPasteState (terminal: TerminalTabComponent) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user