2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show connecting / proxy status above downloads.

Fixes #24125.
This commit is contained in:
John Preston
2022-03-01 18:38:45 +03:00
parent 0192edbe84
commit aa3357eee1
6 changed files with 32 additions and 3 deletions

View File

@@ -1706,6 +1706,11 @@ void Widget::updateControlsGeometry() {
putBottomButton(_updateTelegram);
putBottomButton(_downloadBar);
putBottomButton(_loadMoreChats);
const auto bottomSkip = (height() - scrollTop) - scrollHeight;
if (_connecting) {
_connecting->setBottomSkip(bottomSkip);
}
controller()->setConnectingBottomSkip(bottomSkip);
auto wasScrollHeight = _scroll->height();
_scroll->setGeometry(0, scrollTop, width(), scrollHeight);
_inner->resize(width(), _inner->height());