mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fixed display of empty context menu in section of history widget.
This commit is contained in:
parent
46ab553fa5
commit
19afb49fce
1 changed files with 2 additions and 2 deletions
|
@ -2902,7 +2902,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
HistoryView::EmojiPacksSource::Message,
|
||||
_controller);
|
||||
const auto added = (_menu->actions().size() > wasAmount);
|
||||
if (!added) {
|
||||
if (!added && !_menu->empty()) {
|
||||
_menu->addSeparator();
|
||||
}
|
||||
HistoryView::AddSelectRestrictionAction(
|
||||
|
@ -2916,7 +2916,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
this,
|
||||
leaderOrSelf,
|
||||
_controller);
|
||||
} else {
|
||||
} else if (leaderOrSelf) {
|
||||
HistoryView::MaybeAddWhenEditedAction(_menu, leaderOrSelf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue