fix: switching Category/Single view issue

This commit is contained in:
Salikh Gurgenidze
2026-01-24 15:43:43 +04:00
parent e328ad5667
commit 8612a09aa6
2 changed files with 33 additions and 7 deletions
+10
View File
@@ -57,6 +57,16 @@ function Guda_ResetButtonPool()
nextButtonID = 1
end
-- Mark all buttons as available for reuse (called when switching view types)
-- This allows buttons from one frame to be reused by another
function Guda_ReleaseAllButtons()
for _, button in pairs(buttonPool) do
if not button.isBagSlot then
button.inUse = false
end
end
end
-- Use shared tooltip from Utils module (retrieved on-demand to ensure Utils is loaded)
-- Helper function to check if an item is a quest item