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

Make custom 'Join As' menu item.

This commit is contained in:
John Preston
2021-03-10 18:46:16 +04:00
parent a8a85b2acf
commit ecbbdd5e74
3 changed files with 199 additions and 26 deletions

View File

@@ -655,6 +655,10 @@ void GroupPanel::showMainMenu() {
_call,
[=] { chooseJoinAs(); },
[=](auto box) { _layerBg->showBox(std::move(box)); });
if (_menu->empty()) {
_menu.destroy();
return;
}
const auto raw = _menu.data();
raw->setHiddenCallback([=] {