Skip to content

Commit

Permalink
fix inspect in classic era
Browse files Browse the repository at this point in the history
add a delay since event is delayed there
  • Loading branch information
eltreum0 committed Aug 22, 2023
1 parent 1bbb8c0 commit 29d33e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ElvUI_EltreumUI/Init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 29d33e9

Please sign in to comment.