mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-22 08:16:56 +00:00
Fixed focus in some new settings sections.
This commit is contained in:
parent
d1907083ed
commit
141f96590b
@ -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…
Reference in New Issue
Block a user