Add back try-catch

This commit is contained in:
Charles Ewert 2022-05-30 10:03:59 -04:00
parent bbac0652a3
commit 9e9e18a318

View File

@ -147,12 +147,16 @@ sub toggleFavorite()
end sub
sub setHeartColor(color as string)
for i = 0 to 6
node = m.favoriteMenu.getChild(i)
if node <> invalid and node.uri <> invalid and node.uri = "pkg:/images/icons/favorite_selected.png"
m.favoriteMenu.getChild(i).blendColor = color
end if
end for
TRY
for i = 0 to 6
node = m.favoriteMenu.getChild(i)
if node <> invalid and node.uri <> invalid and node.uri = "pkg:/images/icons/favorite_selected.png"
m.favoriteMenu.getChild(i).blendColor = color
end if
end for
CATCH e
PRINT e.number,e.message
end TRY
end sub
sub saveFavoriteItemSelected(msg)