diff options
author | janrupf <werbung.janrupf@t-online.de> | 2019-06-19 14:55:42 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-06-22 01:48:37 +0200 |
commit | 77f3f028fa36c6712d11c6fd455394cfe03a8f88 (patch) | |
tree | 089f88f2aad27517bbf86bb5da53f682ae42b6b1 | |
parent | ce12f1a734e08f1653aa482279a4dc6b6f3667eb (diff) | |
download | MultiMC-77f3f028fa36c6712d11c6fd455394cfe03a8f88.tar MultiMC-77f3f028fa36c6712d11c6fd455394cfe03a8f88.tar.gz MultiMC-77f3f028fa36c6712d11c6fd455394cfe03a8f88.tar.lz MultiMC-77f3f028fa36c6712d11c6fd455394cfe03a8f88.tar.xz MultiMC-77f3f028fa36c6712d11c6fd455394cfe03a8f88.zip |
GH-2499 Apply proxy settings immediately
-rw-r--r-- | application/pages/global/ProxyPage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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() { |