Skip to content

Commit

Permalink
Update ElvUI_Extras.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
noname08662 authored Jan 11, 2025
1 parent 59988cd commit 5e37d72
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions ElvUI_Extras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1959,22 +1959,11 @@ function core:Initialize()
end

self:SecureHook(E, "SetMoversClampedToScreen", function(_, toggle)
if not self.reload or toggle then
self.reload = not toggle
E.globalShadow = nil
for _, module in pairs(self.modules) do
module()
end
end
end)

self:RawHook(E.data, "SetProfile", function(...)
self.reload = true
self.reload = not toggle
E.globalShadow = nil
for _, module in pairs(self.modules) do
module()
end
self.hooks[E.data].SetProfile(...)
end)

local shadow_db = E.globalShadow
Expand Down

0 comments on commit 5e37d72

Please sign in to comment.