Skip to content

Commit

Permalink
stop event registrations from piling up each time you go through a lo…
Browse files Browse the repository at this point in the history
…ading screen
  • Loading branch information
gallantron committed Jun 7, 2022
1 parent fb9d809 commit 247e56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PallyPower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ function PallyPower:OnEnable()
self:RegisterEvent("CHANNEL_UI_UPDATE", "ReportChannels")
self:RegisterBucketEvent("SPELLS_CHANGED", 1, "SPELLS_CHANGED")
self:RegisterBucketEvent("PLAYER_ENTERING_WORLD", 2, "PLAYER_ENTERING_WORLD")
self:RegisterBucketEvent({"GROUP_ROSTER_UPDATE", "PLAYER_REGEN_ENABLED", "UNIT_PET", "UNIT_AURA"}, 1, "UpdateRoster")
if isPally then
self:ScheduleRepeatingTimer(self.ScanInventory, 60, self)
self.ButtonsUpdate(self)
Expand Down Expand Up @@ -1494,7 +1495,6 @@ end

function PallyPower:PLAYER_ENTERING_WORLD()
--self:Debug("EVENT: PLAYER_ENTERING_WORLD")
self:RegisterBucketEvent({"GROUP_ROSTER_UPDATE", "PLAYER_REGEN_ENABLED", "UNIT_PET", "UNIT_AURA"}, 1, "UpdateRoster")
self:UpdateLayout()
self:UpdateRoster()
self:ReportChannels()
Expand Down

0 comments on commit 247e56c

Please sign in to comment.