mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Close box when showing a layer section from it.
This commit is contained in:
@@ -2645,11 +2645,12 @@ void MainWidget::showNewSection(
|
||||
: nullptr;
|
||||
if (newThirdSection) {
|
||||
saveInStack = false;
|
||||
} else {
|
||||
if (auto layer = memento.createLayer(_controller, rect())) {
|
||||
_controller->showSpecialLayer(std::move(layer));
|
||||
return;
|
||||
} else if (auto layer = memento.createLayer(_controller, rect())) {
|
||||
if (params.activation != anim::activation::background) {
|
||||
Ui::hideLayer(anim::type::instant);
|
||||
}
|
||||
_controller->showSpecialLayer(std::move(layer));
|
||||
return;
|
||||
}
|
||||
|
||||
if (params.activation != anim::activation::background) {
|
||||
|
Reference in New Issue
Block a user