mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
Update #168 Remove unused global on_layout_change
This commit is contained in:
parent
129a102cc8
commit
a87a576ded
@ -120,17 +120,6 @@ function M.on_window_callback(event)
|
||||
end
|
||||
|
||||
|
||||
--- Callback on global layout change event.
|
||||
-- @function druid.on_layout_change
|
||||
function M.on_layout_change()
|
||||
local instances = get_druid_instances()
|
||||
|
||||
for i = 1, #instances do
|
||||
msg.post(instances[i].url, base_component.ON_LAYOUT_CHANGE)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
--- Callback on global language change event.
|
||||
-- Use to update all lang texts
|
||||
-- @function druid.on_language_change
|
||||
|
@ -410,17 +410,6 @@ function DruidInstance.on_focus_gained(self)
|
||||
end
|
||||
|
||||
|
||||
--- Druid on layout change function.
|
||||
-- Called on update gui layout
|
||||
-- @tparam DruidInstance self
|
||||
function DruidInstance.on_layout_change(self)
|
||||
local components = self.components_interest[base_component.ON_LAYOUT_CHANGE]
|
||||
for i = 1, #components do
|
||||
components[i]:on_layout_change()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
--- Druid on language change.
|
||||
-- This one called by global gruid.on_language_change, but can be
|
||||
-- call manualy to update all translations
|
||||
|
Loading…
x
Reference in New Issue
Block a user