mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Improve focusing of shown layers.
This commit is contained in:
parent
76314e3c03
commit
cf896aeb13
1 changed files with 5 additions and 1 deletions
|
@ -457,7 +457,11 @@ void SectionWidget::showFinished() {
|
||||||
showChildren();
|
showChildren();
|
||||||
showFinishedHook();
|
showFinishedHook();
|
||||||
|
|
||||||
controller()->widget()->setInnerFocus();
|
if (isAncestorOf(window()->focusWidget())) {
|
||||||
|
setInnerFocus();
|
||||||
|
} else {
|
||||||
|
controller()->widget()->setInnerFocus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rpl::producer<int> SectionWidget::desiredHeight() const {
|
rpl::producer<int> SectionWidget::desiredHeight() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue