mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-09 06:20:22 +08:00
fix lint
This commit is contained in:
parent
2848f9f257
commit
2acda3be5f
@ -35,9 +35,9 @@ export class NewTabContextMenu extends TerminalContextMenuItemProvider {
|
|||||||
submenu: profiles.map(profile => ({
|
submenu: profiles.map(profile => ({
|
||||||
label: profile.name,
|
label: profile.name,
|
||||||
click: () => this.zone.run(async () => {
|
click: () => this.zone.run(async () => {
|
||||||
const workingDirectory = this.config.store.terminal.alwaysUseWorkingDirectory ?
|
const workingDirectory = this.config.store.terminal.alwaysUseWorkingDirectory === true ?
|
||||||
this.config.store.terminal.workingDirectory : await tab.session.getWorkingDirectory();
|
this.config.store.terminal.workingDirectory : await tab.session.getWorkingDirectory()
|
||||||
this.terminalService.openTab(profile, workingDirectory);
|
await this.terminalService.openTab(profile, workingDirectory)
|
||||||
}),
|
}),
|
||||||
})),
|
})),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user