mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 05:00:02 +00:00
bags: remove redundant fake event loop
Full fake event based approach was disabled as it caused glitches when moving bags. Removing the remaining loop by this commit as the main functions is triggered in the OnEvent anyways.
This commit is contained in:
@@ -61,13 +61,6 @@ pfUI:RegisterModule("bags", function ()
|
||||
pfUI.bag:RegisterEvent("BANKFRAME_OPENED")
|
||||
pfUI.bag:RegisterEvent("ITEM_LOCK_CHANGED")
|
||||
|
||||
pfUI.bag:SetScript("OnUpdate", function()
|
||||
if this.fakeEvent and this.fakeEvent + 0.2 < GetTime() then
|
||||
pfUI.bag:CheckFullUpdate()
|
||||
this.fakeEvent = nil
|
||||
end
|
||||
end)
|
||||
|
||||
pfUI.bag:SetScript("OnEvent", function()
|
||||
if event == "PLAYER_ENTERING_WORLD" then
|
||||
pfUI.bag:CreateBags()
|
||||
@@ -84,7 +77,6 @@ pfUI:RegisterModule("bags", function ()
|
||||
event == "PLAYERBANKBAGSLOTS_CHANGED" or event == "BAG_UPDATE" or
|
||||
event == "BANKFRAME_OPENED" or event == "BANKFRAME_CLOSED" then
|
||||
pfUI.bag:CheckFullUpdate()
|
||||
this.fakeEvent = GetTime()
|
||||
end
|
||||
|
||||
if event == "BAG_UPDATE_COOLDOWN" then
|
||||
|
||||
Reference in New Issue
Block a user