mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Allow setting group stickers set.
This commit is contained in:
@@ -49,7 +49,7 @@ void StickerSetBox::prepare() {
|
||||
setTitle(langFactory(lng_contacts_loading));
|
||||
|
||||
_inner = setInnerWidget(object_ptr<Inner>(this, _set), st::stickersScroll);
|
||||
connect(App::main(), SIGNAL(stickersUpdated()), this, SLOT(onStickersUpdated()));
|
||||
subscribe(Auth().data().stickersUpdated(), [this] { updateButtons(); });
|
||||
|
||||
setDimensions(st::boxWideWidth, st::stickersMaxHeight);
|
||||
|
||||
@@ -57,8 +57,6 @@ void StickerSetBox::prepare() {
|
||||
|
||||
connect(_inner, SIGNAL(updateButtons()), this, SLOT(onUpdateButtons()));
|
||||
connect(_inner, SIGNAL(installed(uint64)), this, SLOT(onInstalled(uint64)));
|
||||
|
||||
onStickersUpdated();
|
||||
}
|
||||
|
||||
void StickerSetBox::onInstalled(uint64 setId) {
|
||||
@@ -66,10 +64,6 @@ void StickerSetBox::onInstalled(uint64 setId) {
|
||||
closeBox();
|
||||
}
|
||||
|
||||
void StickerSetBox::onStickersUpdated() {
|
||||
updateButtons();
|
||||
}
|
||||
|
||||
void StickerSetBox::onAddStickers() {
|
||||
_inner->install();
|
||||
}
|
||||
@@ -254,7 +248,7 @@ void StickerSetBox::Inner::installDone(const MTPmessages_StickerSetInstallResult
|
||||
Local::writeArchivedStickers();
|
||||
}
|
||||
Local::writeInstalledStickers();
|
||||
emit App::main()->stickersUpdated();
|
||||
Auth().data().stickersUpdated().notify(true);
|
||||
}
|
||||
emit installed(_setId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user