mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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,
|
HistoryView::EmojiPacksSource::Message,
|
||||||
_controller);
|
_controller);
|
||||||
const auto added = (_menu->actions().size() > wasAmount);
|
const auto added = (_menu->actions().size() > wasAmount);
|
||||||
if (!added) {
|
if (!added && !_menu->empty()) {
|
||||||
_menu->addSeparator();
|
_menu->addSeparator();
|
||||||
}
|
}
|
||||||
HistoryView::AddSelectRestrictionAction(
|
HistoryView::AddSelectRestrictionAction(
|
||||||
|
@ -2916,7 +2916,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
||||||
this,
|
this,
|
||||||
leaderOrSelf,
|
leaderOrSelf,
|
||||||
_controller);
|
_controller);
|
||||||
} else {
|
} else if (leaderOrSelf) {
|
||||||
HistoryView::MaybeAddWhenEditedAction(_menu, leaderOrSelf);
|
HistoryView::MaybeAddWhenEditedAction(_menu, leaderOrSelf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue