[Backport release-9.x] make sure if user changes java path also disable java management (#3426)
This commit is contained in:
commit
748b92571c
@ -93,6 +93,11 @@ InstanceSettingsPage::InstanceSettingsPage(BaseInstance* inst, QWidget* parent)
|
|||||||
ui->serverJoinAddress->setEnabled(true);
|
ui->serverJoinAddress->setEnabled(true);
|
||||||
ui->serverJoinAddressButton->setStyleSheet("QRadioButton::indicator { width: 0px; height: 0px; }");
|
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();
|
loadSettings();
|
||||||
|
|
||||||
|
@ -171,11 +171,6 @@ void JavaSettingsWidget::setupUi()
|
|||||||
m_verticalLayout->addSpacerItem(m_verticalSpacer);
|
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);
|
m_verticalLayout->addWidget(m_autoJavaGroupBox);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user