mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 04:46:57 +03:00
[Backport release-9.x] make sure if user changes java path also disable java management (#3426)
This commit is contained in:
commit
748b92571c
2 changed files with 5 additions and 5 deletions
|
|
@ -93,6 +93,11 @@ InstanceSettingsPage::InstanceSettingsPage(BaseInstance* inst, QWidget* parent)
|
|||
ui->serverJoinAddress->setEnabled(true);
|
||||
ui->serverJoinAddressButton->setStyleSheet("QRadioButton::indicator { width: 0px; height: 0px; }");
|
||||
}
|
||||
connect(ui->javaPathTextBox, &QLineEdit::textChanged, [this](QString newValue) {
|
||||
if (m_instance->settings()->get("JavaPath").toString() != newValue) {
|
||||
m_instance->settings()->set("AutomaticJava", false);
|
||||
}
|
||||
});
|
||||
|
||||
loadSettings();
|
||||
|
||||
|
|
|
|||
|
|
@ -171,11 +171,6 @@ void JavaSettingsWidget::setupUi()
|
|||
m_verticalLayout->addSpacerItem(m_verticalSpacer);
|
||||
}
|
||||
});
|
||||
connect(m_ui->javaPathTextBox, &QLineEdit::textChanged, [this](QString newValue) {
|
||||
if (m_instance->settings()->get("JavaPath").toString() != newValue) {
|
||||
m_instance->settings()->set("AutomaticJava", false);
|
||||
}
|
||||
});
|
||||
}
|
||||
m_verticalLayout->addWidget(m_autoJavaGroupBox);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue