Show some previews in upload window

This commit is contained in:
Nicolas Werner 2022-03-21 05:05:29 +01:00
parent 830f4d4942
commit dbd2bebe6c
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
9 changed files with 104 additions and 7 deletions

View file

@ -58,7 +58,7 @@ Item {
Image {
anchors.fill: parent
source: thumbnailUrl.replace("mxc://", "image://MxcImage/") + "?scale"
source: thumbnailUrl ? thumbnailUrl.replace("mxc://", "image://MxcImage/") + "?scale" : ""
asynchronous: true
fillMode: Image.PreserveAspectFit