mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +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;
|
||||
}
|
||||
|
||||
if (_firstLoadRequest && !_scroll->isHidden()) {
|
||||
_scroll->hide();
|
||||
} else if (!_firstLoadRequest && _scroll->isHidden()) {
|
||||
_scroll->show();
|
||||
}
|
||||
if (_pinnedBar) {
|
||||
_pinnedBar->show();
|
||||
}
|
||||
|
@ -2659,11 +2664,6 @@ void HistoryWidget::updateControlsVisibility() {
|
|||
if (_requestsBar) {
|
||||
_requestsBar->show();
|
||||
}
|
||||
if (_firstLoadRequest && !_scroll->isHidden()) {
|
||||
_scroll->hide();
|
||||
} else if (!_firstLoadRequest && _scroll->isHidden()) {
|
||||
_scroll->show();
|
||||
}
|
||||
if (_contactStatus) {
|
||||
_contactStatus->show();
|
||||
}
|
||||
|
|
|
@ -597,7 +597,7 @@ int TranslateBar::height() const {
|
|||
return !_forceHidden
|
||||
? _wrap.height()
|
||||
: _shouldBeShown
|
||||
? st::historyReplyHeight
|
||||
? st::historyComposeButton.height
|
||||
: 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue