2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Display connecting/online proxy state.

This commit is contained in:
John Preston
2018-04-30 20:11:36 +04:00
parent f794d8dbd8
commit df4daca15b
4 changed files with 41 additions and 17 deletions

View File

@@ -408,7 +408,7 @@ void MainWindow::mtpStateChanged(int32 dc, int32 state) {
}
void MainWindow::updateConnectingStatus() {
auto state = MTP::dcstate();
const auto state = MTP::dcstate();
const auto throughProxy = Global::UseProxy();
if (state == MTP::ConnectingState || state == MTP::DisconnectedState || (state < 0 && state > -600)) {
if (_main || getms() > 5000 || _connecting) {