Updated graphs and pbars for the upcoming awesome 3.4
This commit is contained in:
parent
853fafcdd3
commit
e7c2e2c2a8
10
init.lua
10
init.lua
|
@ -265,12 +265,12 @@ function update(widget, reg, disablecache)
|
|||
end
|
||||
end
|
||||
|
||||
if reg.field == nil then
|
||||
if widget.add_value ~= nil then
|
||||
widget:add_value(tonumber(data))
|
||||
elseif widget.set_value ~= nil then
|
||||
widget:set_value(tonumber(data) / 100)
|
||||
else
|
||||
widget.text = data
|
||||
elseif widget.plot_data_add ~= nil then
|
||||
widget:plot_data_add(reg.field, tonumber(data))
|
||||
elseif widget.bar_data_add ~= nil then
|
||||
widget:bar_data_add(reg.field, tonumber(data))
|
||||
end
|
||||
|
||||
return data
|
||||
|
|
Loading…
Reference in New Issue