mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
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() {
|
void WrapWidget::doSetInnerFocus() {
|
||||||
if (_topBar && !_topBar->focusSearchField()) {
|
if (!_topBar || !_topBar->focusSearchField()) {
|
||||||
_content->setInnerFocus();
|
_content->setInnerFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,6 +125,9 @@ rpl::producer<std::vector<Type>> Manage::removeTypes() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Manage::setupContent() {
|
void Manage::setupContent() {
|
||||||
|
setFocusPolicy(Qt::StrongFocus);
|
||||||
|
setFocus();
|
||||||
|
|
||||||
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
|
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);
|
||||||
auto currentStepData = stepData();
|
auto currentStepData = stepData();
|
||||||
_currentPassword = base::take(currentStepData.currentPassword);
|
_currentPassword = base::take(currentStepData.currentPassword);
|
||||||
|
|
Loading…
Add table
Reference in a new issue