addonbuttons: always scan for buttons

This commit is contained in:
shagu
2019-03-31 14:59:20 +02:00
parent 139cdbae94
commit 4314334409
+2 -1
View File
@@ -378,7 +378,8 @@ pfUI:RegisterModule("addonbuttons", function ()
pfUI.addonbuttons:GetScript("OnEvent")()
end
pfUI.addonbuttons:SetScript("OnUpdate", function()
pfUI.addonbuttons.scanner = CreateFrame("Frame", "pfAddonButtonScanner", UIParent)
pfUI.addonbuttons.scanner:SetScript("OnUpdate", function()
-- throttle updates to once per 3 seconds
if ( this.tick or 1) > GetTime() then return else this.tick = GetTime() + 3 end