Some post-sticker cleanup...
This commit is contained in:
parent
53eb8f665a
commit
cb9ae27bef
4 changed files with 14 additions and 5 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue