mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Improve wizzard page
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
33
launcher/ui/setupwizard/AutoJavaWizardPage.cpp
Normal file
33
launcher/ui/setupwizard/AutoJavaWizardPage.cpp
Normal file
@ -0,0 +1,33 @@
|
||||
#include "AutoJavaWizardPage.h"
|
||||
#include "ui_AutoJavaWizardPage.h"
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
AutoJavaWizardPage::AutoJavaWizardPage(QWidget* parent) : BaseWizardPage(parent), ui(new Ui::AutoJavaWizardPage)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
AutoJavaWizardPage::~AutoJavaWizardPage()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void AutoJavaWizardPage::initializePage() {}
|
||||
|
||||
bool AutoJavaWizardPage::validatePage()
|
||||
{
|
||||
auto s = APPLICATION->settings();
|
||||
|
||||
if (!ui->previousSettingsRadioButton->isChecked()) {
|
||||
s->set("AutomaticJavaSwitch", true);
|
||||
s->set("AutomaticJavaDownload", true);
|
||||
}
|
||||
s->set("UserAskedAboutAutomaticJavaDownload", true);
|
||||
return true;
|
||||
}
|
||||
|
||||
void AutoJavaWizardPage::retranslate()
|
||||
{
|
||||
ui->retranslateUi(this);
|
||||
}
|
Reference in New Issue
Block a user