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
|
id: stickerPickerLoader
|
||||||
active: false
|
active: false
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
anchors.fill: parent
|
width: parent.width
|
||||||
|
height: active ? parent.height : 0
|
||||||
source: "../components/StickerPicker.qml"
|
source: "../components/StickerPicker.qml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ void StickerManager::handleRecentStickersUpdated(const QVariantList &stickerIds)
|
||||||
|
|
||||||
void StickerManager::handleStickersReceived(const QVariantList &stickers)
|
void StickerManager::handleStickersReceived(const QVariantList &stickers)
|
||||||
{
|
{
|
||||||
LOG("Receiving stickers...." << stickers);
|
LOG("Receiving stickers....");
|
||||||
QListIterator<QVariant> stickersIterator(stickers);
|
QListIterator<QVariant> stickersIterator(stickers);
|
||||||
while (stickersIterator.hasNext()) {
|
while (stickersIterator.hasNext()) {
|
||||||
QVariantMap newSticker = stickersIterator.next().toMap();
|
QVariantMap newSticker = stickersIterator.next().toMap();
|
||||||
|
@ -81,7 +81,7 @@ void StickerManager::handleInstalledStickerSetsUpdated(const QVariantList &stick
|
||||||
|
|
||||||
void StickerManager::handleStickerSetsReceived(const QVariantList &stickerSets)
|
void StickerManager::handleStickerSetsReceived(const QVariantList &stickerSets)
|
||||||
{
|
{
|
||||||
LOG("Receiving sticker sets...." << stickerSets);
|
LOG("Receiving sticker sets....");
|
||||||
QListIterator<QVariant> stickerSetsIterator(stickerSets);
|
QListIterator<QVariant> stickerSetsIterator(stickerSets);
|
||||||
while (stickerSetsIterator.hasNext()) {
|
while (stickerSetsIterator.hasNext()) {
|
||||||
QVariantMap newStickerSet = stickerSetsIterator.next().toMap();
|
QVariantMap newStickerSet = stickerSetsIterator.next().toMap();
|
||||||
|
@ -102,8 +102,8 @@ void StickerManager::handleStickerSetsReceived(const QVariantList &stickerSets)
|
||||||
|
|
||||||
void StickerManager::handleStickerSetReceived(const QVariantMap &stickerSet)
|
void StickerManager::handleStickerSetReceived(const QVariantMap &stickerSet)
|
||||||
{
|
{
|
||||||
LOG("Receiving complete sticker set...." << stickerSet);
|
|
||||||
QString stickerSetId = stickerSet.value("id").toString();
|
QString stickerSetId = stickerSet.value("id").toString();
|
||||||
|
LOG("Receiving complete sticker set...." << stickerSetId);
|
||||||
this->stickerSets.insert(stickerSetId, stickerSet);
|
this->stickerSets.insert(stickerSetId, stickerSet);
|
||||||
int setIndex = this->stickerSetMap.value(stickerSetId).toInt();
|
int setIndex = this->stickerSetMap.value(stickerSetId).toInt();
|
||||||
this->installedStickerSets.replace(setIndex, stickerSet);
|
this->installedStickerSets.replace(setIndex, stickerSet);
|
||||||
|
|
|
@ -527,7 +527,11 @@
|
||||||
<name>StickerPicker</name>
|
<name>StickerPicker</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Recently used</source>
|
<source>Recently used</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Kürzlich verwendet</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Loading stickers...</source>
|
||||||
|
<translation>Lade Sticker...</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
|
|
@ -529,6 +529,10 @@
|
||||||
<source>Recently used</source>
|
<source>Recently used</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Loading stickers...</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>VideoPage</name>
|
<name>VideoPage</name>
|
||||||
|
|
Loading…
Reference in a new issue