mirror of https://github.com/procxx/kepka.git
Close box when showing a layer section from it.
This commit is contained in:
parent
86c0dfb295
commit
d5ae9bcba2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue