mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix outdated bar closing.
This commit is contained in:
parent
d52475666d
commit
f1ab712f07
2 changed files with 4 additions and 3 deletions
Telegram/SourceFiles
|
@ -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 };
|
||||
|
|
|
@ -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(); });
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue