Refresh global proxy after settings being read.

Fixes #16600, fixes #17249.
This commit is contained in:
John Preston 2021-11-16 12:35:12 +04:00
parent a0110fed27
commit 6925bf6a8e

View File

@ -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();