From 7aab54ed199430fc2059a074966f5955e6f69920 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 22 Oct 2022 21:22:37 -0700 Subject: [PATCH] template: Make sure the template is loaded when calling `get_children_by_id`. --- lib/wibox/template.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/wibox/template.lua b/lib/wibox/template.lua index 7ee392567..7747e6efd 100644 --- a/lib/wibox/template.lua +++ b/lib/wibox/template.lua @@ -181,6 +181,12 @@ function template:set_template(widget_template) self:emit_signal("property::template", widget_template) end +function template:get_children_by_id(...) + local w = lazy_load_child(self) + + return w:get_children_by_id(...) +end + --- Set a property on one or more template sub-widget instances. -- -- This method allows to set a value at any time on any of the sub widget of