Some post-sticker cleanup...

This commit is contained in:
Sebastian J. Wolf 2020-10-16 00:02:58 +02:00
parent 53eb8f665a
commit cb9ae27bef
4 changed files with 14 additions and 5 deletions

View file

@ -950,7 +950,8 @@ Page {
id: stickerPickerLoader
active: false
asynchronous: true
anchors.fill: parent
width: parent.width
height: active ? parent.height : 0
source: "../components/StickerPicker.qml"
}

View file

@ -58,7 +58,7 @@ void StickerManager::handleRecentStickersUpdated(const QVariantList &stickerIds)
void StickerManager::handleStickersReceived(const QVariantList &stickers)
{
LOG("Receiving stickers...." << stickers);
LOG("Receiving stickers....");
QListIterator<QVariant> stickersIterator(stickers);
while (stickersIterator.hasNext()) {
QVariantMap newSticker = stickersIterator.next().toMap();
@ -81,7 +81,7 @@ void StickerManager::handleInstalledStickerSetsUpdated(const QVariantList &stick
void StickerManager::handleStickerSetsReceived(const QVariantList &stickerSets)
{
LOG("Receiving sticker sets...." << stickerSets);
LOG("Receiving sticker sets....");
QListIterator<QVariant> stickerSetsIterator(stickerSets);
while (stickerSetsIterator.hasNext()) {
QVariantMap newStickerSet = stickerSetsIterator.next().toMap();
@ -102,8 +102,8 @@ void StickerManager::handleStickerSetsReceived(const QVariantList &stickerSets)
void StickerManager::handleStickerSetReceived(const QVariantMap &stickerSet)
{
LOG("Receiving complete sticker set...." << stickerSet);
QString stickerSetId = stickerSet.value("id").toString();
LOG("Receiving complete sticker set...." << stickerSetId);
this->stickerSets.insert(stickerSetId, stickerSet);
int setIndex = this->stickerSetMap.value(stickerSetId).toInt();
this->installedStickerSets.replace(setIndex, stickerSet);

View file

@ -527,7 +527,11 @@
<name>StickerPicker</name>
<message>
<source>Recently used</source>
<translation type="unfinished"></translation>
<translation>Kürzlich verwendet</translation>
</message>
<message>
<source>Loading stickers...</source>
<translation>Lade Sticker...</translation>
</message>
</context>
<context>

View file

@ -529,6 +529,10 @@
<source>Recently used</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Loading stickers...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>VideoPage</name>