GH-2499 Apply proxy settings immediately
This commit is contained in:
parent
ce12f1a734
commit
77f3f028fa
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include "settings/SettingsObject.h"
|
#include "settings/SettingsObject.h"
|
||||||
#include "MultiMC.h"
|
#include "MultiMC.h"
|
||||||
|
#include "Env.h"
|
||||||
|
|
||||||
ProxyPage::ProxyPage(QWidget *parent) : QWidget(parent), ui(new Ui::ProxyPage)
|
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("ProxyPort", ui->proxyPortEdit->value());
|
||||||
s->set("ProxyUser", ui->proxyUserEdit->text());
|
s->set("ProxyUser", ui->proxyUserEdit->text());
|
||||||
s->set("ProxyPass", ui->proxyPassEdit->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()
|
void ProxyPage::loadSettings()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user