mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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));
|
height() - sectionTop));
|
||||||
} else if (_mainSection) {
|
} else if (_mainSection) {
|
||||||
result.oldContentCache = _mainSection->grabForShowAnimation(result);
|
result.oldContentCache = _mainSection->grabForShowAnimation(result);
|
||||||
} else {
|
} else if (!Adaptive::OneColumn() || !_history->isHidden()) {
|
||||||
result.oldContentCache = _history->grabForShowAnimation(result);
|
result.oldContentCache = _history->grabForShowAnimation(result);
|
||||||
|
} else {
|
||||||
|
result.oldContentCache = Ui::GrabWidget(this, QRect(
|
||||||
|
0,
|
||||||
|
sectionTop,
|
||||||
|
_dialogsWidth,
|
||||||
|
height() - sectionTop));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playerVolumeVisible) {
|
if (playerVolumeVisible) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue