fix: only disable battery in WSL1

resolves #1736
This commit is contained in:
Jan De Dobbeleer 2022-02-09 17:47:28 +01:00 committed by Jan De Dobbeleer
parent b3d9981eec
commit f6232deaf8

View file

@ -32,7 +32,8 @@ func (b *Battery) Template() string {
}
func (b *Battery) Enabled() bool {
if !b.env.IsWsl2() {
// disable in WSL1
if b.env.IsWsl() && !b.env.IsWsl2() {
return false
}