Skip to content

Commit

Permalink
Fix: Fixed Catalyst items for new favorites option
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolkenschutz committed Feb 22, 2024
1 parent 5719c10 commit 07cab6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/catalyst.lua
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,15 @@ function Catalyst:Update()
local Frame = GetItemFrame(numItems);
local FavoriteStar = Frame.FavoriteStar;

specID = itemInfo.specID or specID;
local isFavoriteItem = Addon.Database:GetFavorite(mapID, specID, itemID) ~= nil;

FavoriteStar:SetDesaturated(not isFavoriteItem);
FavoriteStar:SetShown(isFavoriteItem);

Frame.isFavorite = isFavoriteItem;
Frame.itemID = itemID;
Frame.specID = specID;
Frame.Icon:SetTexture(itemInfo.icon);
Frame:Show();
end
Expand Down

0 comments on commit 07cab6b

Please sign in to comment.