init: add set_markup support
This commit is contained in:
parent
e51d8ac39e
commit
fbd2af7b15
2
init.lua
2
init.lua
|
@ -75,6 +75,8 @@ local function update(widget, reg, disablecache)
|
|||
widget:add_value(tonumber(data) and tonumber(data)/100)
|
||||
elseif widget.set_value ~= nil then
|
||||
widget:set_value(tonumber(data) and tonumber(data)/100)
|
||||
elseif widget.set_markup ~= nil then
|
||||
widget:set_markup(data)
|
||||
else
|
||||
widget.text = data
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue