mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +00:00
macos: only query default shell once
This commit is contained in:
@@ -33,10 +33,6 @@ export class MacOSDefaultShellProvider extends ShellProvider {
|
|||||||
private async getDefaultShellCached () {
|
private async getDefaultShellCached () {
|
||||||
if (!this.cachedShell) {
|
if (!this.cachedShell) {
|
||||||
this.cachedShell = await this.getDefaultShell()
|
this.cachedShell = await this.getDefaultShell()
|
||||||
} else {
|
|
||||||
this.getDefaultShell().then(shell => {
|
|
||||||
this.cachedShell = shell
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
return this.cachedShell!
|
return this.cachedShell!
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user