From 29d33e9dd846ff2264717abb33d0251730eb79f0 Mon Sep 17 00:00:00 2001 From: Eltreum <30246110+eltreum0@users.noreply.github.com> Date: Tue, 22 Aug 2023 16:35:28 -0300 Subject: [PATCH] fix inspect in classic era add a delay since event is delayed there --- ElvUI_EltreumUI/Init.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ElvUI_EltreumUI/Init.lua b/ElvUI_EltreumUI/Init.lua index acd111b9c..632816d33 100644 --- a/ElvUI_EltreumUI/Init.lua +++ b/ElvUI_EltreumUI/Init.lua @@ -331,9 +331,11 @@ function ElvUI_EltreumUI:PLAYER_AVG_ITEM_LEVEL_UPDATE() end function ElvUI_EltreumUI:INSPECT_READY(_,unit) - if _G.InspectFrame and _G.InspectFrame:IsVisible() then - ElvUI_EltreumUI:InspectBg(unit) - end + E:Delay(0, function() + if _G.InspectFrame and _G.InspectFrame:IsVisible() then + ElvUI_EltreumUI:InspectBg(unit) + end + end) end function ElvUI_EltreumUI:PLAYER_LEAVING_WORLD()