Mixes in in Playlet backend (#530)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-12-28 15:22:07 -05:00
1 parent 5b6b5f5ec3
commit 0d21963d5f
12 files changed
+149 -36

No files matched your search

@@ -18,15 +18,16 @@ function OnContentSet() as void
m.top.author = content._author
m.top.thumbnailUri = content.thumbnail
if ValidInt(content.lengthSeconds) <> 0
SetDurationText(content.lengthText)
m.top.durationRectVisible = true
else
m.top.durationRectVisible = false
end if
SetDurationText(content.lengthText)
end function
function SetDurationText(text as string) as void
hasText = text <> ""
m.top.durationRectVisible = hasText
if not hasText
return
end if
m.top.duration = text
label = m.durationLabel