mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-30 16:29:53 +00:00
Use linux icon by default when no WSL profile icon is found
This commit is contained in:
parent
ec22c00ba5
commit
a5fb726206
@ -62,7 +62,8 @@ export class WSLShellProvider extends ShellProvider {
|
|||||||
TERM: 'xterm-color',
|
TERM: 'xterm-color',
|
||||||
COLORTERM: 'truecolor',
|
COLORTERM: 'truecolor',
|
||||||
},
|
},
|
||||||
icon: wslIconMap[defaultDistKey.DistributionName.value],
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
|
icon: wslIconMap[defaultDistKey.DistributionName.value] ?? wslIconMap.Linux,
|
||||||
}
|
}
|
||||||
shells.push(shell)
|
shells.push(shell)
|
||||||
}
|
}
|
||||||
@ -103,7 +104,8 @@ export class WSLShellProvider extends ShellProvider {
|
|||||||
TERM: 'xterm-color',
|
TERM: 'xterm-color',
|
||||||
COLORTERM: 'truecolor',
|
COLORTERM: 'truecolor',
|
||||||
},
|
},
|
||||||
icon: wslIconMap[name],
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
|
icon: wslIconMap[name] ?? wslIconMap.Linux,
|
||||||
}
|
}
|
||||||
shells.push(shell)
|
shells.push(shell)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user