diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-07 21:43:18 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-07 21:43:18 +0100 |
commit | fa40e402a771a718db19af3210ea8a961e9c98b8 (patch) | |
tree | 8d47e476e8c0b3dc113795cd26a934e71cf27565 /init.lua | |
parent | 6f79227ca1147efa38aac24bb8d08d008f61e3b2 (diff) | |
download | vicious-legacy-fa40e402a771a718db19af3210ea8a961e9c98b8.tar.xz |
init: never pass nil into awful.widget widgets
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -114,9 +114,9 @@ local function update(widget, reg, disablecache) end if widget.add_value ~= nil then - widget:add_value(tonumber(data) / 100) + widget:add_value(data and tonumber(data) / 100) elseif widget.set_value ~= nil then - widget:set_value(tonumber(data) / 100) + widget:set_value(data and tonumber(data) / 100) else widget.text = data end |