Fix error when opening a mix

This commit is contained in:
Brahim Hadriche committed 2024-12-16 17:42:59 -05:00
1 parent b49557a5a6
commit 657b6c9818
6 files changed
+37 -4

No files matched your search

@@ -19,7 +19,12 @@ function OnContentSet() as void
m.top.thumbnailUri = content.thumbnail
SetVideoCount(content.videoCountText)
if content.videoCount = -1
m.top.videoCountLabelVisible = false
else
m.top.videoCountLabelVisible = true
SetVideoCount(content.videoCountText)
end if
end function
function SetVideoCount(videoCountText as string) as void
@@ -7,6 +7,7 @@
<field id="updated" type="string" alias="updatedLabel.text" />
<field id="thumbnailUri" type="uri" alias="thumbnail.uri" />
<field id="videoCount" type="string" alias="videoCountLabel.text" />
<field id="videoCountLabelVisible" type="boolean" alias="videoCountLabel.visible" />
</interface>
<children>
<LayoutGroup