feat: item tracking with ctrl + click

This commit is contained in:
Salikh Gurgenidze
2025-12-23 04:01:46 +04:00
parent bd8ac3e4b0
commit 8eeb2331bc
6 changed files with 13 additions and 66 deletions
+2 -2
View File
@@ -544,7 +544,7 @@ function Guda_ItemButton_SetItem(self, bagID, slotID, itemData, isBank, otherCha
local check = getglobal(self:GetName().."_Check")
if check then
local isTracked = false
if self.hasItem and addon.Modules.DB:GetSetting("showTrackedItems") then
if self.hasItem then
local itemID = addon.Modules.Utils:ExtractItemID(self.itemData and self.itemData.link)
if itemID then
local trackedItems = addon.Modules.DB:GetSetting("trackedItems") or {}
@@ -771,7 +771,7 @@ function Guda_ItemButton_SetItem(self, bagID, slotID, itemData, isBank, otherCha
if not self.isReadOnly and not self.otherChar then
local old_OnClick = self:GetScript("OnClick")
self:SetScript("OnClick", function()
if IsControlKeyDown() and addon.Modules.DB:GetSetting("showTrackedItems") then
if IsControlKeyDown() then
local itemID = addon.Modules.Utils:ExtractItemID(GetContainerItemLink(this:GetParent():GetID(), this:GetID()))
if itemID then
local trackedItems = addon.Modules.DB:GetSetting("trackedItems") or {}