mirror of
https://github.com/hbomb79/Titanium.git
synced 2025-01-22 09:22:05 -05:00
Nodes inside of application dialog container receive theme updates
This commit is contained in:
parent
d8172dbc69
commit
f1e31d1290
1 changed files with 10 additions and 6 deletions
|
@ -88,12 +88,16 @@ end
|
|||
@desc Calls :retrieveThemes on the child nodes, meaning they will re-fetch their rules from the manager after clearing any current ones.
|
||||
]]
|
||||
function MThemeManager:dispatchThemeRules()
|
||||
local nodes = self.collatedNodes
|
||||
local function dispatchAndYield( targets )
|
||||
themeYield()
|
||||
for i = 1, #targets do
|
||||
if os.clock() - t > 8 then themeYield() end
|
||||
|
||||
themeYield()
|
||||
for i = 1, #nodes do
|
||||
if os.clock() - t > 8 then themeYield() end
|
||||
|
||||
nodes[ i ]:retrieveThemes()
|
||||
targets[ i ]:retrieveThemes()
|
||||
end
|
||||
end
|
||||
|
||||
dispatchAndYield( self.collatedNodes )
|
||||
self.dialogContainer:retrieveThemes() -- Pretty sure I need this... Not certain, I'll leave it here for now.
|
||||
dispatchAndYield( self.dialogContainer.collatedNodes )
|
||||
end
|
Loading…
Reference in a new issue