Small tweak

This commit is contained in:
Brahim Hadriche committed 2023-01-22 15:33:19 -05:00
1 parent 2ff73c3bc7
commit 9848c2a31a
1 file changed
+6 -3
+6 -3
View File
@@ -1,9 +1,12 @@
import "pkg:/source/utils/TimeUtils.bs"
function OnContentSet()
function OnContentSet() as void
content = m.top.itemContent
if content <> invalid
if content = invalid
return
end if
m.top.FindNode("titleLabel").text = content.title
m.top.FindNode("authorLabel").text = content.author
@@ -36,7 +39,7 @@ function OnContentSet()
m.top.FindNode("durationRect").visible = false
end if
end if
end if
end function
function OnThumbnailLoadFailed() as void