mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix return to saved history state with translate bar.
This commit is contained in:
parent
3ac86adf10
commit
ebfddc1a68
2 changed files with 6 additions and 6 deletions
|
@ -2647,6 +2647,11 @@ void HistoryWidget::updateControlsVisibility() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_firstLoadRequest && !_scroll->isHidden()) {
|
||||||
|
_scroll->hide();
|
||||||
|
} else if (!_firstLoadRequest && _scroll->isHidden()) {
|
||||||
|
_scroll->show();
|
||||||
|
}
|
||||||
if (_pinnedBar) {
|
if (_pinnedBar) {
|
||||||
_pinnedBar->show();
|
_pinnedBar->show();
|
||||||
}
|
}
|
||||||
|
@ -2659,11 +2664,6 @@ void HistoryWidget::updateControlsVisibility() {
|
||||||
if (_requestsBar) {
|
if (_requestsBar) {
|
||||||
_requestsBar->show();
|
_requestsBar->show();
|
||||||
}
|
}
|
||||||
if (_firstLoadRequest && !_scroll->isHidden()) {
|
|
||||||
_scroll->hide();
|
|
||||||
} else if (!_firstLoadRequest && _scroll->isHidden()) {
|
|
||||||
_scroll->show();
|
|
||||||
}
|
|
||||||
if (_contactStatus) {
|
if (_contactStatus) {
|
||||||
_contactStatus->show();
|
_contactStatus->show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -597,7 +597,7 @@ int TranslateBar::height() const {
|
||||||
return !_forceHidden
|
return !_forceHidden
|
||||||
? _wrap.height()
|
? _wrap.height()
|
||||||
: _shouldBeShown
|
: _shouldBeShown
|
||||||
? st::historyReplyHeight
|
? st::historyComposeButton.height
|
||||||
: 0;
|
: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue