Merge pull request #484 from andersfugmann/battery_ac
Fix AC detection for battery widget.
This commit is contained in:
commit
10076e1d69
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ local function factory(args)
|
|||
if bstr then
|
||||
batteries[#batteries + 1] = bstr
|
||||
else
|
||||
ac = string.match(line, "A%w+") or "AC0"
|
||||
ac = string.match(line, "A%w+") or ac
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue