@@ -160,11 +160,16 @@ function LiteBagContainerPanelMixin:OnHide()
160
160
LB .db .UnregisterAllCallbacks (self )
161
161
162
162
ContainerFrameCombinedBagsMixin .OnHide (self )
163
+ -- Reregister these to keep them registered. Work around a Blizzard bug where
164
+ -- closing the bags with a keybind while the mouse is over a bagbutton will leave
165
+ -- the slots highlighted forever.
166
+ EventRegistry :RegisterCallback (" BagSlot.OnEnter" , self .OnBagSlotEnter , self )
167
+ EventRegistry :RegisterCallback (" BagSlot.OnLeave" , self .OnBagSlotLeave , self )
163
168
164
169
-- UpdateNewItemList is broken in DF 10.0 and only clears the backpack
165
170
-- on a combined frame. Fix it up ourselves.
166
171
for _ , itemButton in self :EnumerateValidItems () do
167
- C_NewItems .RemoveNewItem (itemButton :GetBagID (), itemButton :GetID ());
172
+ C_NewItems .RemoveNewItem (itemButton :GetBagID (), itemButton :GetID ())
168
173
end
169
174
170
175
self :UnregisterEvent (" PLAYERBANKSLOTS_CHANGED" )
@@ -364,7 +369,7 @@ function LiteBagContainerPanelMixin:UpdateMiscellaneousFrames()
364
369
if self :MatchesBagID (Enum .BagIndex .Bank ) then
365
370
self :GetParent ():SetPortraitToUnit (' npc' )
366
371
elseif self :MatchesBagID (Enum .BagIndex .Backpack ) then
367
- self :GetParent ():SetPortraitToAsset (" Interface/Icons/Inv_misc_bag_08" );
372
+ self :GetParent ():SetPortraitToAsset (" Interface/Icons/Inv_misc_bag_08" )
368
373
else
369
374
self :GetParent ():SetPortraitToBag (self .bagIDs [1 ])
370
375
end
@@ -384,7 +389,7 @@ function LiteBagContainerPanelMixin:OnTokenWatchChanged()
384
389
end
385
390
386
391
function LiteBagContainerPanelMixin :SetTokenTracker (tokenFrame )
387
- -- tokenFrame:SetParent(self);
392
+ -- tokenFrame:SetParent(self)
388
393
-- tokenFrame:SetIsCombinedInventory(true)
389
394
end
390
395
0 commit comments