mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-24 04:22:39 +00:00
NOISSUE Some happy little refactors
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#include <QTabBar>
|
||||
|
||||
#include "settings/SettingsObject.h"
|
||||
#include "Launcher.h"
|
||||
#include "Application.h"
|
||||
#include "Env.h"
|
||||
|
||||
ProxyPage::ProxyPage(QWidget *parent) : QWidget(parent), ui(new Ui::ProxyPage)
|
||||
@@ -58,7 +58,7 @@ void ProxyPage::proxyChanged(int)
|
||||
|
||||
void ProxyPage::applySettings()
|
||||
{
|
||||
auto s = LAUNCHER->settings();
|
||||
auto s = APPLICATION->settings();
|
||||
|
||||
// Proxy
|
||||
QString proxyType = "None";
|
||||
@@ -77,12 +77,12 @@ void ProxyPage::applySettings()
|
||||
s->set("ProxyUser", ui->proxyUserEdit->text());
|
||||
s->set("ProxyPass", ui->proxyPassEdit->text());
|
||||
|
||||
ENV.updateProxySettings(proxyType, ui->proxyAddrEdit->text(), ui->proxyPortEdit->value(),
|
||||
ENV->updateProxySettings(proxyType, ui->proxyAddrEdit->text(), ui->proxyPortEdit->value(),
|
||||
ui->proxyUserEdit->text(), ui->proxyPassEdit->text());
|
||||
}
|
||||
void ProxyPage::loadSettings()
|
||||
{
|
||||
auto s = LAUNCHER->settings();
|
||||
auto s = APPLICATION->settings();
|
||||
// Proxy
|
||||
QString proxyType = s->get("ProxyType").toString();
|
||||
if (proxyType == "Default")
|
||||
|
||||
Reference in New Issue
Block a user