Small tweak
This commit is contained in:
1 parent
2ff73c3bc7
commit
9848c2a31a
1 file changed
+6
-3
@@ -1,9 +1,12 @@
|
|||||||
import "pkg:/source/utils/TimeUtils.bs"
|
import "pkg:/source/utils/TimeUtils.bs"
|
||||||
|
|
||||||
function OnContentSet()
|
function OnContentSet() as void
|
||||||
content = m.top.itemContent
|
content = m.top.itemContent
|
||||||
|
|
||||||
if content <> invalid
|
if content = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
m.top.FindNode("titleLabel").text = content.title
|
m.top.FindNode("titleLabel").text = content.title
|
||||||
m.top.FindNode("authorLabel").text = content.author
|
m.top.FindNode("authorLabel").text = content.author
|
||||||
|
|
||||||
@@ -36,7 +39,7 @@ function OnContentSet()
|
|||||||
m.top.FindNode("durationRect").visible = false
|
m.top.FindNode("durationRect").visible = false
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
end if
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnThumbnailLoadFailed() as void
|
function OnThumbnailLoadFailed() as void
|
||||||
|
|||||||
Reference in new issue
Block a user