2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +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

@@ -269,9 +269,8 @@ bool ProxyData::ValidSecret(const QString &secret) {
}
QNetworkProxy ToNetworkProxy(const ProxyData &proxy) {
Expects(proxy.type != ProxyData::Type::Mtproto);
if (proxy.type == ProxyData::Type::None) {
if (proxy.type == ProxyData::Type::None
|| proxy.type == ProxyData::Type::Mtproto) {
return QNetworkProxy::NoProxy;
}
return QNetworkProxy(