mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-26 03:27:23 +03:00
handle node-powershell failing during icon resolution
This commit is contained in:
parent
a769fdd036
commit
b4c3ac8ab6
@ -56,7 +56,14 @@ export class WSLShellProvider extends ShellProvider {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _resolveIcon (defaultDistKey: any): Promise<string> {
|
private _resolveIcon (defaultDistKey: any): Promise<string> {
|
||||||
|
return this._resolveIconInner(defaultDistKey).catch(e => {
|
||||||
|
console.error('Failed to resolve icon for WSL distribution:', defaultDistKey, e)
|
||||||
|
return wslIconMap.Linux
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
private async _resolveIconInner (defaultDistKey: any): Promise<string> {
|
||||||
let _icon = wslIconMap.Linux
|
let _icon = wslIconMap.Linux
|
||||||
|
|
||||||
// check if the register has PackageFamilyName
|
// check if the register has PackageFamilyName
|
||||||
|
Loading…
Reference in New Issue
Block a user