mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix animation in single column layout.
This commit is contained in:
parent
aaa1245430
commit
bfae205fbe
1 changed files with 7 additions and 1 deletions
|
@ -2248,8 +2248,14 @@ Window::SectionSlideParams MainWidget::prepareShowAnimation(
|
|||
height() - sectionTop));
|
||||
} else if (_mainSection) {
|
||||
result.oldContentCache = _mainSection->grabForShowAnimation(result);
|
||||
} else {
|
||||
} else if (!Adaptive::OneColumn() || !_history->isHidden()) {
|
||||
result.oldContentCache = _history->grabForShowAnimation(result);
|
||||
} else {
|
||||
result.oldContentCache = Ui::GrabWidget(this, QRect(
|
||||
0,
|
||||
sectionTop,
|
||||
_dialogsWidth,
|
||||
height() - sectionTop));
|
||||
}
|
||||
|
||||
if (playerVolumeVisible) {
|
||||
|
|
Loading…
Add table
Reference in a new issue