2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Check effects availability in all SendMenu-s.

This commit is contained in:
John Preston
2024-05-10 14:10:53 +04:00
parent 396ba9a984
commit d1106e5ae6
50 changed files with 394 additions and 417 deletions

View File

@@ -1297,8 +1297,8 @@ void TabbedSelector::scrollToY(int y) {
}
}
void TabbedSelector::showMenuWithType(SendMenu::Type type) {
_menu = currentTab()->widget()->fillContextMenu(type);
void TabbedSelector::showMenuWithDetails(SendMenu::Details details) {
_menu = currentTab()->widget()->fillContextMenu(details);
if (_menu && !_menu->empty()) {
_menu->popup(QCursor::pos());
}