With sidebar open settings in layer.
This commit is contained in:
		
							parent
							
								
									4f718aeead
								
							
						
					
					
						commit
						39a8df8383
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -1896,8 +1896,8 @@ void MainWidget::showNewSection(
 | 
				
			||||||
	using Column = Window::Column;
 | 
						using Column = Window::Column;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	auto saveInStack = (params.way == SectionShow::Way::Forward);
 | 
						auto saveInStack = (params.way == SectionShow::Way::Forward);
 | 
				
			||||||
	auto thirdSectionTop = getThirdSectionTop();
 | 
						const auto thirdSectionTop = getThirdSectionTop();
 | 
				
			||||||
	auto newThirdGeometry = QRect(
 | 
						const auto newThirdGeometry = QRect(
 | 
				
			||||||
		width() - st::columnMinimalWidthThird,
 | 
							width() - st::columnMinimalWidthThird,
 | 
				
			||||||
		thirdSectionTop,
 | 
							thirdSectionTop,
 | 
				
			||||||
		st::columnMinimalWidthThird,
 | 
							st::columnMinimalWidthThird,
 | 
				
			||||||
| 
						 | 
					@ -1909,9 +1909,10 @@ void MainWidget::showNewSection(
 | 
				
			||||||
			Column::Third,
 | 
								Column::Third,
 | 
				
			||||||
			newThirdGeometry)
 | 
								newThirdGeometry)
 | 
				
			||||||
		: nullptr;
 | 
							: nullptr;
 | 
				
			||||||
 | 
						const auto layerRect = parentWidget()->rect();
 | 
				
			||||||
	if (newThirdSection) {
 | 
						if (newThirdSection) {
 | 
				
			||||||
		saveInStack = false;
 | 
							saveInStack = false;
 | 
				
			||||||
	} else if (auto layer = memento.createLayer(_controller, rect())) {
 | 
						} else if (auto layer = memento.createLayer(_controller, layerRect)) {
 | 
				
			||||||
		if (params.activation != anim::activation::background) {
 | 
							if (params.activation != anim::activation::background) {
 | 
				
			||||||
			Ui::hideLayer(anim::type::instant);
 | 
								Ui::hideLayer(anim::type::instant);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue