2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show sticker set on Ctrl+Click in stickers list.

This commit is contained in:
John Preston
2019-09-10 00:48:34 +03:00
parent ca45fb617e
commit 76f0abecfd
5 changed files with 41 additions and 20 deletions

View File

@@ -135,16 +135,17 @@ StickerSetBox::StickerSetBox(
, _set(set) {
}
void StickerSetBox::Show(
QPointer<BoxContent> StickerSetBox::Show(
not_null<Window::SessionController*> controller,
not_null<DocumentData*> document) {
if (const auto sticker = document->sticker()) {
if (sticker->set.type() != mtpc_inputStickerSetEmpty) {
Ui::show(
return Ui::show(
Box<StickerSetBox>(controller, sticker->set),
LayerOption::KeepOther);
LayerOption::KeepOther).data();
}
}
return nullptr;
}
void StickerSetBox::prepare() {