Disallow using a string widget type.
This commit is contained in:
parent
756215f020
commit
22033bae53
5
init.lua
5
init.lua
|
@ -110,11 +110,6 @@ function register(widget, wtype, format, timer, field, padd)
|
||||||
reg.timer = 1
|
reg.timer = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Allow using a string widget type
|
|
||||||
if type(reg.type) == "string" then
|
|
||||||
reg.type = widgets[reg.type]
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Register reg object
|
-- Register reg object
|
||||||
regregister(reg)
|
regregister(reg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue