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

Allow disabling even system proxy settings.

Fixes #4944.
This commit is contained in:
John Preston
2018-11-05 17:58:24 +04:00
parent ef64d9c188
commit e482f041a8
17 changed files with 151 additions and 78 deletions

View File

@@ -195,11 +195,8 @@ void ApiWrap::refreshProxyPromotion() {
getProxyPromotionDelayed(now, next);
return;
}
const auto proxy = Global::UseProxy()
? Global::SelectedProxy()
: ProxyData();
const auto key = [&]() -> std::pair<QString, uint32> {
if (!Global::UseProxy()) {
if (Global::ProxySettings() != ProxyData::Settings::Enabled) {
return {};
}
const auto &proxy = Global::SelectedProxy();