mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Remove emoji-set preview context menu.
This commit is contained in:
parent
012ecb2dcc
commit
075ced2742
1 changed files with 3 additions and 1 deletions
|
@ -830,7 +830,9 @@ void StickerSetBox::Inner::send(
|
||||||
|
|
||||||
void StickerSetBox::Inner::contextMenuEvent(QContextMenuEvent *e) {
|
void StickerSetBox::Inner::contextMenuEvent(QContextMenuEvent *e) {
|
||||||
const auto index = stickerFromGlobalPos(e->globalPos());
|
const auto index = stickerFromGlobalPos(e->globalPos());
|
||||||
if (index < 0 || index >= _pack.size()) {
|
if (index < 0
|
||||||
|
|| index >= _pack.size()
|
||||||
|
|| setType() != Data::StickersType::Stickers) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto type = _controller->content()->sendMenuType();
|
const auto type = _controller->content()->sendMenuType();
|
||||||
|
|
Loading…
Add table
Reference in a new issue