mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Close box when showing a layer section from it.
This commit is contained in:
parent
86c0dfb295
commit
d5ae9bcba2
1 changed files with 5 additions and 4 deletions
|
@ -2645,11 +2645,12 @@ void MainWidget::showNewSection(
|
||||||
: nullptr;
|
: nullptr;
|
||||||
if (newThirdSection) {
|
if (newThirdSection) {
|
||||||
saveInStack = false;
|
saveInStack = false;
|
||||||
} else {
|
} else if (auto layer = memento.createLayer(_controller, rect())) {
|
||||||
if (auto layer = memento.createLayer(_controller, rect())) {
|
if (params.activation != anim::activation::background) {
|
||||||
_controller->showSpecialLayer(std::move(layer));
|
Ui::hideLayer(anim::type::instant);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
_controller->showSpecialLayer(std::move(layer));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.activation != anim::activation::background) {
|
if (params.activation != anim::activation::background) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue