NOISSUE Some happy little refactors
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#include "AnalyticsWizardPage.h"
|
||||
#include <Launcher.h>
|
||||
#include <Application.h>
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include <QTextBrowser>
|
||||
@ -33,8 +33,8 @@ AnalyticsWizardPage::~AnalyticsWizardPage()
|
||||
|
||||
bool AnalyticsWizardPage::validatePage()
|
||||
{
|
||||
auto settings = LAUNCHER->settings();
|
||||
auto analytics = LAUNCHER->analytics();
|
||||
auto settings = APPLICATION->settings();
|
||||
auto analytics = APPLICATION->analytics();
|
||||
auto status = checkBox->isChecked();
|
||||
settings->set("AnalyticsSeen", analytics->version());
|
||||
settings->set("Analytics", status);
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "JavaWizardPage.h"
|
||||
#include <Launcher.h>
|
||||
#include <Application.h>
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include <QGroupBox>
|
||||
@ -55,7 +55,7 @@ bool JavaWizardPage::wantsRefreshButton()
|
||||
|
||||
bool JavaWizardPage::validatePage()
|
||||
{
|
||||
auto settings = LAUNCHER->settings();
|
||||
auto settings = APPLICATION->settings();
|
||||
auto result = m_java_widget->validate();
|
||||
switch(result)
|
||||
{
|
||||
@ -71,7 +71,7 @@ bool JavaWizardPage::validatePage()
|
||||
case JavaSettingsWidget::ValidationStatus::JavaBad:
|
||||
{
|
||||
// Memory
|
||||
auto s = LAUNCHER->settings();
|
||||
auto s = APPLICATION->settings();
|
||||
s->set("MinMemAlloc", m_java_widget->minHeapSize());
|
||||
s->set("MaxMemAlloc", m_java_widget->maxHeapSize());
|
||||
if (m_java_widget->permGenEnabled())
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "LanguageWizardPage.h"
|
||||
#include <Launcher.h>
|
||||
#include <Application.h>
|
||||
#include <translations/TranslationsModel.h>
|
||||
|
||||
#include "widgets/LanguageSelectionWidget.h"
|
||||
@ -29,13 +29,13 @@ bool LanguageWizardPage::wantsRefreshButton()
|
||||
|
||||
void LanguageWizardPage::refresh()
|
||||
{
|
||||
auto translations = LAUNCHER->translations();
|
||||
auto translations = APPLICATION->translations();
|
||||
translations->downloadIndex();
|
||||
}
|
||||
|
||||
bool LanguageWizardPage::validatePage()
|
||||
{
|
||||
auto settings = LAUNCHER->settings();
|
||||
auto settings = APPLICATION->settings();
|
||||
QString key = mainWidget->getSelectedLanguageKey();
|
||||
settings->set("Language", key);
|
||||
return true;
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "AnalyticsWizardPage.h"
|
||||
|
||||
#include "translations/TranslationsModel.h"
|
||||
#include <Launcher.h>
|
||||
#include <Application.h>
|
||||
#include <FileSystem.h>
|
||||
#include <ganalytics.h>
|
||||
|
||||
|
Reference in New Issue
Block a user