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

Show status duration menu only in status panel.

This commit is contained in:
John Preston
2022-09-02 21:12:10 +04:00
parent 49773dde72
commit 898edad09b
8 changed files with 81 additions and 81 deletions

View File

@@ -1145,12 +1145,8 @@ void TabbedSelector::scrollToY(int y) {
}
void TabbedSelector::showMenuWithType(SendMenu::Type type) {
_menu = base::make_unique_q<Ui::PopupMenu>(
this,
st::popupMenuWithIcons);
currentTab()->widget()->fillContextMenu(_menu, type);
if (!_menu->empty()) {
_menu = currentTab()->widget()->fillContextMenu(type);
if (_menu && !_menu->empty()) {
_menu->popup(QCursor::pos());
}
}