Fixed focus in some new settings sections.
This commit is contained in:
		
							parent
							
								
									d1907083ed
								
							
						
					
					
						commit
						141f96590b
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -829,7 +829,7 @@ void WrapWidget::showAnimatedHook(
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void WrapWidget::doSetInnerFocus() {
 | 
			
		||||
	if (_topBar && !_topBar->focusSearchField()) {
 | 
			
		||||
	if (!_topBar || !_topBar->focusSearchField()) {
 | 
			
		||||
		_content->setInnerFocus();
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -125,6 +125,9 @@ rpl::producer<std::vector<Type>> Manage::removeTypes() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void Manage::setupContent() {
 | 
			
		||||
	setFocusPolicy(Qt::StrongFocus);
 | 
			
		||||
	setFocus();
 | 
			
		||||
 | 
			
		||||
	const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
 | 
			
		||||
	auto currentStepData = stepData();
 | 
			
		||||
	_currentPassword = base::take(currentStepData.currentPassword);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue