From fae74a2d7dfef1c1c0f68903fa45d51f477b0507 Mon Sep 17 00:00:00 2001 From: Infus Date: Tue, 12 Dec 2023 00:23:25 +0100 Subject: [PATCH] Small tweak --- WeakAuras/GenericTrigger.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/WeakAuras/GenericTrigger.lua b/WeakAuras/GenericTrigger.lua index 7f32ac11fc..59aac9033f 100644 --- a/WeakAuras/GenericTrigger.lua +++ b/WeakAuras/GenericTrigger.lua @@ -3682,10 +3682,12 @@ function WeakAuras.RegisterItemCountWatch() itemCountWatchFrame:RegisterEvent("BAG_UPDATE_DELAYED") local batchUpdateCount = function() itemCountWatchFrame:SetScript("OnUpdate", nil) + Private.StartProfileSystem("generictrigger ITEM_COUNT_UPDATE") WeakAuras.ScanEvents("ITEM_COUNT_UPDATE") + Private.StopProfileSystem("generictrigger ITEM_COUNT_UPDATE") end itemCountWatchFrame:SetScript("OnEvent", function(self, event) - Private.StartProfileSystem("generictrigger") + Private.StartProfileSystem("generictrigger itemCountFrame") if event == "ACTIONBAR_UPDATE_COOLDOWN" then -- workaround to blizzard bug: refreshing healthstones from soulwell dont trigger BAG_UPDATE_DELAYED -- so, we fake it by listening to A_U_C and checking on next frame @@ -3695,7 +3697,7 @@ function WeakAuras.RegisterItemCountWatch() -- item count prototype already subscribes to this event so no need to also send an internal event itemCountWatchFrame:SetScript("OnUpdate", nil) end - Private.StopProfileSystem("generictrigger") + Private.StopProfileSystem("generictrigger itemCountFrame") end) end end