Added ability to use back button in top bar with any mouse button.

This commit is contained in:
23rd 2023-03-02 10:45:47 +03:00
parent 6f3dbc4305
commit e2450101c0
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,8 @@ TopBarWidget::TopBarWidget(
_groupCall->setClickedCallback([=] { groupCall(); });
_menuToggle->setClickedCallback([=] { showPeerMenu(); });
_infoToggle->setClickedCallback([=] { toggleInfoSection(); });
_back->setClickedCallback([=] {
_back->setAcceptBoth();
_back->addClickHandler([=](Qt::MouseButton) {
InvokeQueued(_back.data(), [=] { backClicked(); });
});
_cancelChoose->setClickedCallback(