Close box when showing a layer section from it.

This commit is contained in:
John Preston 2017-12-26 16:55:15 +03:00
parent 86c0dfb295
commit d5ae9bcba2
1 changed files with 5 additions and 4 deletions

View File

@ -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) {