Fix download bar close in a hidden window.

Fixes #24132.
This commit is contained in:
John Preston 2022-03-04 15:37:50 +04:00
parent 76a2ae4714
commit 8678eef9e8

View file

@ -428,6 +428,7 @@ void Widget::setupDownloadBar() {
!rpl::mappers::_1
) | rpl::start_with_next([=] {
_downloadBar = nullptr;
updateControlsGeometry();
}, _downloadBar->lifetime());
_downloadBar->clicks(