Skip to content

Commit b771e59

Browse files
committed
feat: avoid the queue after module initialized
1 parent 38f5b06 commit b771e59

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Modules/Skins/Core.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,13 @@ function S:HandleAceGUIWidget(lib, name, constructor)
333333
self.aceWidgetWaitingList[name] = {}
334334
lib.WidgetRegistry[name] = function()
335335
local widget = config.constructor()
336-
tinsert(self.aceWidgetWaitingList[name], widget)
336+
if self.db then
337+
if self.db.enable and config.checker(self.db) then
338+
config.handler(widget)
339+
end
340+
else
341+
tinsert(self.aceWidgetWaitingList[name], widget)
342+
end
337343
return widget
338344
end
339345
end

0 commit comments

Comments
 (0)