Skip to content

Commit

Permalink
Fixed a bug with lock icon appearing randomly on list view.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Nov 29, 2023
1 parent acfc68a commit 6f8ce51
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frames/itemrow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ function itemRowProto:SetItem(i)

local bagid, slotid = i:GetItemLocation():GetBagAndSlot()
self.rowButton:SetID(slotid)
ClearItemButtonOverlay(self.rowButton)
self.rowButton:UpdateExtended()
--ClearItemButtonOverlay(self.rowButton)
--self.rowButton:UpdateExtended()
self.rowButton:SetHasItem(i:GetItemIcon())
self.rowButton.NewItemTexture:Hide()
self.rowButton.BattlepayItemTexture:Hide()
local quality = i:GetItemQuality()
if quality == Enum.ItemQuality.Poor then
self.text:SetVertexColor(0.62, 0.62, 0.62, 1)
Expand Down Expand Up @@ -179,6 +177,9 @@ function item:_DoCreate()
rowButton.PushedTexture:Hide()
rowButton.PushedTexture:SetParent(nil)
rowButton.PushedTexture = nil
rowButton.NewItemTexture:Hide()
rowButton.BattlepayItemTexture:Hide()

i.frame:SetSize(350, 40)

return i
Expand Down

0 comments on commit 6f8ce51

Please sign in to comment.