mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +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();
|
||||
showFinishedHook();
|
||||
|
||||
controller()->widget()->setInnerFocus();
|
||||
if (isAncestorOf(window()->focusWidget())) {
|
||||
setInnerFocus();
|
||||
} else {
|
||||
controller()->widget()->setInnerFocus();
|
||||
}
|
||||
}
|
||||
|
||||
rpl::producer<int> SectionWidget::desiredHeight() const {
|
||||
|
|
Loading…
Add table
Reference in a new issue