Show first sticker in picker if no set thumbnail is available

This commit is contained in:
Sebastian Wolf 2021-02-14 10:17:26 +01:00
parent 23fd7cb7cd
commit 42a697591d
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A
3 changed files with 3 additions and 3 deletions

View file

@ -142,7 +142,7 @@ Item {
TDLibThumbnail { TDLibThumbnail {
id: stickerSetThumbnail id: stickerSetThumbnail
thumbnail: modelData.thumbnail thumbnail: modelData.thumbnail ? modelData.thumbnail : modelData.stickers[0].thumbnail
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: Theme.itemSizeMedium width: Theme.itemSizeMedium
height: Theme.itemSizeMedium height: Theme.itemSizeMedium

View file

@ -12,7 +12,7 @@ Name: harbour-fernschreiber
Summary: Fernschreiber is a Telegram client for Sailfish OS Summary: Fernschreiber is a Telegram client for Sailfish OS
Version: 0.7.1 Version: 0.7.1
Release: 1 Release: 2
Group: Qt/Qt Group: Qt/Qt
License: LICENSE License: LICENSE
URL: http://werkwolf.eu/ URL: http://werkwolf.eu/

View file

@ -1,7 +1,7 @@
Name: harbour-fernschreiber Name: harbour-fernschreiber
Summary: Fernschreiber is a Telegram client for Sailfish OS Summary: Fernschreiber is a Telegram client for Sailfish OS
Version: 0.7.1 Version: 0.7.1
Release: 1 Release: 2
# The contents of the Group field should be one of the groups listed here: # The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS # https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
Group: Qt/Qt Group: Qt/Qt