mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-02 11:44:01 +03:00
fixed wsl crash when default distro is not available (fixes #2130)
This commit is contained in:
parent
8a5846ff81
commit
d0ddd82906
@ -52,7 +52,7 @@ export class WSLShellProvider extends ShellProvider {
|
||||
|
||||
if (null != lxss && null != lxss.DefaultDistribution) {
|
||||
const defaultDistKey = wnr.getRegistryKey(wnr.HK.CU, lxssPath + '\\' + String(lxss.DefaultDistribution.value))
|
||||
if (defaultDistKey.DistributionName) {
|
||||
if (defaultDistKey?.DistributionName) {
|
||||
const shell: Shell = {
|
||||
id: 'wsl',
|
||||
name: 'WSL / Default distro',
|
||||
|
Loading…
Reference in New Issue
Block a user