"-" symbol changed in the vicious.widgets.bat return value.

This commit is contained in:
Kolan Sh 2015-07-24 20:12:00 +03:00
parent 82c0d34ed3
commit e0d612f927
1 changed files with 1 additions and 1 deletions

2
wi.lua
View File

@ -20,7 +20,7 @@ vicious.register(batpct, vicious.widgets.bat, function(widget, args)
bat_charge = args[2] bat_charge = args[2]
bat_time = args[3] bat_time = args[3]
if args[1] == "-" then if args[1] == "" then
if bat_charge > 70 then if bat_charge > 70 then
baticon:set_image(beautiful.widget_batfull) baticon:set_image(beautiful.widget_batfull)
elseif bat_charge > 30 then elseif bat_charge > 30 then