mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
JavaSettingsWidget -> JavaWizardWidget
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
|
||||
#include "JavaCommon.h"
|
||||
|
||||
#include "ui/widgets/JavaSettingsWidget.h"
|
||||
#include "ui/widgets/JavaWizardWidget.h"
|
||||
#include "ui/widgets/VersionSelectWidget.h"
|
||||
|
||||
JavaWizardPage::JavaWizardPage(QWidget* parent) : BaseWizardPage(parent)
|
||||
@ -27,7 +27,7 @@ void JavaWizardPage::setupUi()
|
||||
setObjectName(QStringLiteral("javaPage"));
|
||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||
|
||||
m_java_widget = new JavaSettingsWidget(this);
|
||||
m_java_widget = new JavaWizardWidget(this);
|
||||
layout->addWidget(m_java_widget);
|
||||
setLayout(layout);
|
||||
|
||||
@ -58,13 +58,13 @@ bool JavaWizardPage::validatePage()
|
||||
settings->set("UserAskedAboutAutomaticJavaDownload", true);
|
||||
switch (result) {
|
||||
default:
|
||||
case JavaSettingsWidget::ValidationStatus::Bad: {
|
||||
case JavaWizardWidget::ValidationStatus::Bad: {
|
||||
return false;
|
||||
}
|
||||
case JavaSettingsWidget::ValidationStatus::AllOK: {
|
||||
case JavaWizardWidget::ValidationStatus::AllOK: {
|
||||
settings->set("JavaPath", m_java_widget->javaPath());
|
||||
} /* fallthrough */
|
||||
case JavaSettingsWidget::ValidationStatus::JavaBad: {
|
||||
case JavaWizardWidget::ValidationStatus::JavaBad: {
|
||||
// Memory
|
||||
auto s = APPLICATION->settings();
|
||||
s->set("MinMemAlloc", m_java_widget->minHeapSize());
|
||||
|
Reference in New Issue
Block a user