From 77f3f028fa36c6712d11c6fd455394cfe03a8f88 Mon Sep 17 00:00:00 2001 From: janrupf Date: Wed, 19 Jun 2019 14:55:42 +0200 Subject: [PATCH] GH-2499 Apply proxy settings immediately --- application/pages/global/ProxyPage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/pages/global/ProxyPage.cpp b/application/pages/global/ProxyPage.cpp index 5c53fb52..ee56a54e 100644 --- a/application/pages/global/ProxyPage.cpp +++ b/application/pages/global/ProxyPage.cpp @@ -20,6 +20,7 @@ #include "settings/SettingsObject.h" #include "MultiMC.h" +#include "Env.h" ProxyPage::ProxyPage(QWidget *parent) : QWidget(parent), ui(new Ui::ProxyPage) { @@ -75,6 +76,9 @@ void ProxyPage::applySettings() s->set("ProxyPort", ui->proxyPortEdit->value()); s->set("ProxyUser", ui->proxyUserEdit->text()); s->set("ProxyPass", ui->proxyPassEdit->text()); + + ENV.updateProxySettings(proxyType, ui->proxyAddrEdit->text(), ui->proxyPortEdit->value(), + ui->proxyUserEdit->text(), ui->proxyPassEdit->text()); } void ProxyPage::loadSettings() {