add(w.w.template) constructor `buttons` param

This commit is contained in:
Aire-One 2021-11-11 17:44:52 +01:00 committed by Emmanuel Lepage Vallee
parent 086eb146f6
commit 33d5de52c6
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,10 @@ function template.new(args)
ret:set_update_callback(args.update_callback) ret:set_update_callback(args.update_callback)
ret:set_update_now(args.update_now) ret:set_update_now(args.update_now)
if args.buttons then
ret:set_buttons(args.buttons)
end
return ret return ret
end end