1
0
Fork 0

Launcher: fix warning about Qurl / undefined

This commit is contained in:
James Turner 2018-05-09 19:35:12 +01:00
parent 607cef530a
commit b6f7f17c5c

View file

@ -46,8 +46,14 @@ Item {
}
}
function currentPreviewUrl()
{
if (__currentUrl >= urlsList.length) return "";
return urlsList[__currentUrl];
}
visible: imageUrl != ""
imageUrl: urlsList[__currentUrl]
imageUrl: currentPreviewUrl()
// conditional binding when we have valid previews
Binding {