sorting herb bags are added , upgrade quest item detection

This commit is contained in:
Salikh Gurgenidze
2025-12-19 02:06:49 +04:00
parent 159a0a6e15
commit 4758fe06d8
3 changed files with 56 additions and 47 deletions
+7 -7
View File
@@ -110,13 +110,13 @@ function BagScanner:Initialize()
-- Register bag update events
eventFrame:RegisterEvent("BAG_UPDATE")
eventFrame:RegisterEvent("BAG_UPDATE_DELAYED")
eventFrame:SetScript("OnEvent", function()
if event == "BAG_UPDATE" or event == "BAG_UPDATE_DELAYED" then
addon:Debug("Bag update detected, saving data...")
self:SaveToDatabase()
end
end)
--
--eventFrame:SetScript("OnEvent", function()
-- if event == "BAG_UPDATE" or event == "BAG_UPDATE_DELAYED" then
-- addon:Debug("Bag update detected, saving data...")
-- self:SaveToDatabase()
-- end
--end)
addon:Debug("Bag scanner initialized with auto-save")
end