From 6925bf6a8ee38554310a7608be3feceed49a31c4 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 16 Nov 2021 12:35:12 +0400 Subject: [PATCH] Refresh global proxy after settings being read. Fixes #16600, fixes #17249. --- Telegram/SourceFiles/core/application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/application.cpp b/Telegram/SourceFiles/core/application.cpp index f5c58d105d..225452dc36 100644 --- a/Telegram/SourceFiles/core/application.cpp +++ b/Telegram/SourceFiles/core/application.cpp @@ -208,7 +208,6 @@ void Application::run() { style::internal::StartFonts(); ThirdParty::start(); - refreshGlobalProxy(); // Depends on Core::IsAppLaunched(). // Depends on OpenSSL on macOS, so on ThirdParty::start(). // Depends on notifications settings. @@ -217,6 +216,8 @@ void Application::run() { startLocalStorage(); ValidateScale(); + refreshGlobalProxy(); // Depends on app settings being read. + if (Local::oldSettingsVersion() < AppVersion) { RegisterUrlScheme(); psNewVersion();