Fix return to saved history state with translate bar.
This commit is contained in:
parent
3ac86adf10
commit
ebfddc1a68
|
@ -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…
Reference in New Issue