Fix outdated bar closing.

This commit is contained in:
John Preston 2023-08-11 20:22:50 +02:00
parent d52475666d
commit f1ab712f07
2 changed files with 4 additions and 3 deletions

View File

@ -174,6 +174,9 @@ object_ptr<RpWidget> CreateOutdatedBar(
Closed(workingPath);
}, wrap->lifetime());
wrap->entity()->resizeToWidth(st::windowMinWidth);
wrap->show(anim::type::instant);
return result;
#else // DESKTOP_APP_SPECIAL_TARGET
return { nullptr };

View File

@ -375,9 +375,7 @@ MainWindow::MainWindow(not_null<Controller*> controller)
if (_outdated) {
_outdated->heightValue(
) | rpl::filter([=] {
return window()->windowHandle() != nullptr;
}) | rpl::start_with_next([=](int height) {
) | rpl::start_with_next([=](int height) {
if (!height) {
crl::on_main(this, [=] { _outdated.destroy(); });
}