Skip to content

Commit

Permalink
re-skin widget protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Aug 21, 2024
1 parent a153d0c commit bbc213f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Core/Skins/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,11 @@ end
--Skins a frame and all its children
---@param widget Frame
function module.SkinWidgets(widget)
if not widget or not widget.widgetType then return end
if not widget or not widget.widgetType or widget.SUISkinned then return end
---@diagnostic disable-next-line: undefined-field
local widgetFunc = module.Objects[GetWidgetVisualizationTypeKey(widget.widgetType)]
if widgetFunc then widgetFunc(widget) end
widget.SUISkinned = true
end

module.Registry = {}
Expand Down
2 changes: 1 addition & 1 deletion Modules/Artwork/BlizzMovers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ local function TopCenterContainer()
end
module:RegisterEvent('PLAYER_ENTERING_WORLD')
module:RegisterEvent('UPDATE_ALL_UI_WIDGETS')
module:RegisterEvent('UPDATE_UI_WIDGET')
-- module:RegisterEvent('UPDATE_UI_WIDGET')
end

function module:UPDATE_UI_WIDGET()
Expand Down

0 comments on commit bbc213f

Please sign in to comment.