2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

Removed PeerChooseCancel global variable from facades.

This commit is contained in:
23rd
2021-05-25 19:22:46 +03:00
parent daa14466e5
commit 77c8bf8176
7 changed files with 16 additions and 11 deletions

View File

@@ -1617,6 +1617,10 @@ void Widget::updateControlsGeometry() {
}
}
rpl::producer<> Widget::closeForwardBarRequests() const {
return _closeForwardBarRequests.events();
}
void Widget::updateForwardBar() {
auto selecting = controller()->selectingPeer();
auto oneColumnSelecting = (Adaptive::OneColumn() && selecting);
@@ -1625,8 +1629,8 @@ void Widget::updateForwardBar() {
}
if (oneColumnSelecting) {
_forwardCancel.create(this, st::dialogsForwardCancel);
_forwardCancel->setClickedCallback([] {
Global::RefPeerChooseCancel().notify(true);
_forwardCancel->setClickedCallback([=] {
_closeForwardBarRequests.fire({});
});
if (!_a_show.animating()) _forwardCancel->show();
} else {