From 5e37d729d3e6f1570dc6a6b1783fdd31d6d5c350 Mon Sep 17 00:00:00 2001 From: noname08662 <178931709+noname08662@users.noreply.github.com> Date: Sun, 12 Jan 2025 00:57:56 +0200 Subject: [PATCH] Update ElvUI_Extras.lua --- ElvUI_Extras.lua | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/ElvUI_Extras.lua b/ElvUI_Extras.lua index 3104d93..31481cb 100644 --- a/ElvUI_Extras.lua +++ b/ElvUI_Extras.lua @@ -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