Some checks failed
CodeQL Code Scanning / CodeQL (push) Has been cancelled
Build Application / Build Debug (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-13, x86_64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-14, aarch64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04, x86_64-linux) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04-arm, aarch64-linux) (push) Has been cancelled
Update Flake Lockfile / update-flake (push) Has been cancelled
34 lines
728 B
C++
Executable File
34 lines
728 B
C++
Executable File
#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);
|
|
}
|