add(w.w.template) constructor accepts widget props

This commit is contained in:
Aire-One 2021-11-26 00:44:11 +01:00 committed by Emmanuel Lepage Vallee
parent d5382b0881
commit 2542c3b04a
1 changed files with 2 additions and 3 deletions

View File

@ -216,9 +216,8 @@ function template.new(args)
ret:set_update_callback(args.update_callback)
ret:set_update_now(args.update_now)
if args.buttons then
ret:set_buttons(args.buttons)
end
-- Apply the received buttons, visible, forced_width and so on
gtable.crush(ret, args)
return ret
end