mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-29 05:10:20 +02:00
[Backport release-9.x] make sure if user changes java path also disable java management (#3417)
This commit is contained in:
commit
7d786987ad
@ -171,6 +171,11 @@ 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…
x
Reference in New Issue
Block a user