2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Removed Ui::hideLayer from places that can be in non-primary windows.

This commit is contained in:
23rd
2022-06-09 06:37:46 +03:00
parent 1169c5e143
commit 43c0197445
10 changed files with 20 additions and 22 deletions

View File

@@ -311,7 +311,7 @@ MainWidget::MainWidget(
} else {
Ui::showPeerHistory(history, ShowAtUnreadMsgId);
}
Ui::hideLayer();
_controller->hideLayer();
}
}, lifetime());
@@ -1644,7 +1644,7 @@ void MainWidget::showNewSection(
saveInStack = false;
} else if (auto layer = memento->createLayer(_controller, layerRect)) {
if (params.activation != anim::activation::background) {
Ui::hideLayer(anim::type::instant);
_controller->hideLayer(anim::type::instant);
}
_controller->showSpecialLayer(std::move(layer));
return;