Fixed focus in some new settings sections.

This commit is contained in:
23rd 2022-05-24 01:41:23 +03:00
parent d1907083ed
commit 141f96590b
2 changed files with 4 additions and 1 deletions

View File

@ -829,7 +829,7 @@ void WrapWidget::showAnimatedHook(
}
void WrapWidget::doSetInnerFocus() {
if (_topBar && !_topBar->focusSearchField()) {
if (!_topBar || !_topBar->focusSearchField()) {
_content->setInnerFocus();
}
}

View File

@ -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);