Skip to content

Commit

Permalink
unregister event if not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed May 16, 2024
1 parent 9bb6492 commit d4e9183
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ElvUI_EltreumUI/Modules/Skins/Borders/Borders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,8 @@ function ElvUI_EltreumUI:BordersTargetChanged() --does not work whent target of
else
targetpowerborder:SetBackdropBorderColor(classcolor.r, classcolor.g, classcolor.b, 1)
end
else
powertypemonitortarget:UnregisterEvent("UNIT_DISPLAYPOWER")
end
end)

Expand All @@ -1414,6 +1416,8 @@ function ElvUI_EltreumUI:BordersTargetChanged() --does not work whent target of
else
playerpowerborder:SetBackdropBorderColor(classcolor.r, classcolor.g, classcolor.b, 1)
end
else
powertypemonitorplayer:UnregisterEvent("UNIT_DISPLAYPOWER")
end
end)

Expand Down

0 comments on commit d4e9183

Please sign in to comment.