Merge pull request #1888 from cewert/fix-itemgridoptions-crash

This commit is contained in:
Charles Ewert 2024-07-31 09:51:40 -07:00 committed by GitHub
commit 0d30bb68fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"