2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

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

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