mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 21:50:00 +00:00
bags: only updae item lock on actual changes
This commit is contained in:
+5
-2
@@ -687,8 +687,11 @@ pfUI:RegisterModule("bags", "vanilla:tbc", function ()
|
||||
for slot=1, bagsize do
|
||||
if pfUI.bags[bag] and pfUI.bags[bag].slots[slot] and pfUI.bags[bag].slots[slot].frame:IsShown() then
|
||||
local _, _, locked, _ = GetContainerItemInfo(bag, slot)
|
||||
SetItemButtonDesaturated(pfUI.bags[bag].slots[slot].frame, locked, 0.5, 0.5, 0.5)
|
||||
if pfUI.unusable then pfUI.unusable:UpdateSlot(bag, slot) end
|
||||
if pfUI.bags[bag].slots[slot].locked ~= locked then
|
||||
SetItemButtonDesaturated(pfUI.bags[bag].slots[slot].frame, locked, 0.5, 0.5, 0.5)
|
||||
if pfUI.unusable then pfUI.unusable:UpdateSlot(bag, slot) end
|
||||
pfUI.bags[bag].slots[slot].locked = locked
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user