With sidebar open settings in layer.

This commit is contained in:
John Preston 2020-03-24 16:44:15 +04:00
parent 4f718aeead
commit 39a8df8383
1 changed files with 4 additions and 3 deletions

View File

@ -1896,8 +1896,8 @@ void MainWidget::showNewSection(
using Column = Window::Column;
auto saveInStack = (params.way == SectionShow::Way::Forward);
auto thirdSectionTop = getThirdSectionTop();
auto newThirdGeometry = QRect(
const auto thirdSectionTop = getThirdSectionTop();
const auto newThirdGeometry = QRect(
width() - st::columnMinimalWidthThird,
thirdSectionTop,
st::columnMinimalWidthThird,
@ -1909,9 +1909,10 @@ void MainWidget::showNewSection(
Column::Third,
newThirdGeometry)
: nullptr;
const auto layerRect = parentWidget()->rect();
if (newThirdSection) {
saveInStack = false;
} else if (auto layer = memento.createLayer(_controller, rect())) {
} else if (auto layer = memento.createLayer(_controller, layerRect)) {
if (params.activation != anim::activation::background) {
Ui::hideLayer(anim::type::instant);
}