From 42a697591d7d3676cde842837a3b27bfbba6845d Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Sun, 14 Feb 2021 10:17:26 +0100 Subject: [PATCH] Show first sticker in picker if no set thumbnail is available --- qml/components/StickerPicker.qml | 2 +- rpm/harbour-fernschreiber.spec | 2 +- rpm/harbour-fernschreiber.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qml/components/StickerPicker.qml b/qml/components/StickerPicker.qml index 717a409..efa8245 100644 --- a/qml/components/StickerPicker.qml +++ b/qml/components/StickerPicker.qml @@ -142,7 +142,7 @@ Item { TDLibThumbnail { id: stickerSetThumbnail - thumbnail: modelData.thumbnail + thumbnail: modelData.thumbnail ? modelData.thumbnail : modelData.stickers[0].thumbnail anchors.verticalCenter: parent.verticalCenter width: Theme.itemSizeMedium height: Theme.itemSizeMedium diff --git a/rpm/harbour-fernschreiber.spec b/rpm/harbour-fernschreiber.spec index d093501..8b97fa8 100644 --- a/rpm/harbour-fernschreiber.spec +++ b/rpm/harbour-fernschreiber.spec @@ -12,7 +12,7 @@ Name: harbour-fernschreiber Summary: Fernschreiber is a Telegram client for Sailfish OS Version: 0.7.1 -Release: 1 +Release: 2 Group: Qt/Qt License: LICENSE URL: http://werkwolf.eu/ diff --git a/rpm/harbour-fernschreiber.yaml b/rpm/harbour-fernschreiber.yaml index 5d1b338..b8168df 100644 --- a/rpm/harbour-fernschreiber.yaml +++ b/rpm/harbour-fernschreiber.yaml @@ -1,7 +1,7 @@ Name: harbour-fernschreiber Summary: Fernschreiber is a Telegram client for Sailfish OS Version: 0.7.1 -Release: 1 +Release: 2 # The contents of the Group field should be one of the groups listed here: # https://github.com/mer-tools/spectacle/blob/master/data/GROUPS Group: Qt/Qt