Skip to content

Commit

Permalink
Merge pull request #1888 from cewert/fix-itemgridoptions-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Jul 31, 2024
2 parents fe89be5 + da702bc commit 0d30bb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/ItemGrid/ItemGridOptions.bs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ sub buttonFocusChanged()
end sub

sub toggleFavorite()
if not isValid(m.selectedFavoriteItem) then return

m.favItemsTask = createObject("roSGNode", "FavoriteItemsTask")
if m.favoriteMenu.iconUri = "pkg:/images/icons/favorite.png"
m.favoriteMenu.iconUri = "pkg:/images/icons/favorite_selected.png"
Expand Down

0 comments on commit 0d30bb6

Please sign in to comment.