Improve wizzard page
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
fa68428a90
commit
c85294af9d
12 changed files with 384 additions and 39 deletions
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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue