mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix outdated bar closing.
This commit is contained in:
parent
d52475666d
commit
f1ab712f07
2 changed files with 4 additions and 3 deletions
|
@ -174,6 +174,9 @@ object_ptr<RpWidget> CreateOutdatedBar(
|
||||||
Closed(workingPath);
|
Closed(workingPath);
|
||||||
}, wrap->lifetime());
|
}, wrap->lifetime());
|
||||||
|
|
||||||
|
wrap->entity()->resizeToWidth(st::windowMinWidth);
|
||||||
|
wrap->show(anim::type::instant);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
#else // DESKTOP_APP_SPECIAL_TARGET
|
#else // DESKTOP_APP_SPECIAL_TARGET
|
||||||
return { nullptr };
|
return { nullptr };
|
||||||
|
|
|
@ -375,9 +375,7 @@ MainWindow::MainWindow(not_null<Controller*> controller)
|
||||||
|
|
||||||
if (_outdated) {
|
if (_outdated) {
|
||||||
_outdated->heightValue(
|
_outdated->heightValue(
|
||||||
) | rpl::filter([=] {
|
) | rpl::start_with_next([=](int height) {
|
||||||
return window()->windowHandle() != nullptr;
|
|
||||||
}) | rpl::start_with_next([=](int height) {
|
|
||||||
if (!height) {
|
if (!height) {
|
||||||
crl::on_main(this, [=] { _outdated.destroy(); });
|
crl::on_main(this, [=] { _outdated.destroy(); });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue