mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
fix crash on first display with java downloader off
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -12,12 +12,8 @@
|
||||
|
||||
#include <sys.h>
|
||||
|
||||
#include "FileSystem.h"
|
||||
#include "JavaCommon.h"
|
||||
#include "java/JavaInstall.h"
|
||||
#include "java/JavaUtils.h"
|
||||
|
||||
#include "ui/dialogs/CustomMessageBox.h"
|
||||
#include "ui/widgets/JavaSettingsWidget.h"
|
||||
#include "ui/widgets/VersionSelectWidget.h"
|
||||
|
||||
@ -57,8 +53,8 @@ bool JavaWizardPage::validatePage()
|
||||
{
|
||||
auto settings = APPLICATION->settings();
|
||||
auto result = m_java_widget->validate();
|
||||
settings->set("AutomaticJavaSwitch", m_java_widget->autodetectJava());
|
||||
settings->set("AutomaticJavaDownload", m_java_widget->autodownloadJava());
|
||||
settings->set("AutomaticJavaSwitch", m_java_widget->autoDetectJava());
|
||||
settings->set("AutomaticJavaDownload", m_java_widget->autoDownloadJava());
|
||||
switch (result) {
|
||||
default:
|
||||
case JavaSettingsWidget::ValidationStatus::Bad: {
|
||||
|
Reference in New Issue
Block a user