Add tooltips and fix archive download task

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-07-22 09:18:20 +03:00
parent 29a6db171f
commit 5d3549a5e9
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318
3 changed files with 8 additions and 1 deletions

View File

@ -124,6 +124,7 @@ void ArchiveDownloadTask::extractJava(QString input)
stepProgress(*progressStep);
});
m_task->start();
return;
}
emitFailed(tr("Could not determine archive type!"));

View File

@ -264,7 +264,7 @@ void JavaPage::on_removeJavaButton_clicked()
for (auto& entry : entries) {
if (dcast->path.startsWith(entry.canonicalFilePath())) {
auto response = CustomMessageBox::selectable(this, tr("Confirm Deletion"),
tr("You are about to remove \"%1\" java version.\n"
tr("You are about to remove the Java installation named \"%1\".\n"
"Are you sure?")
.arg(entry.fileName()),
QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, QMessageBox::No)

View File

@ -253,6 +253,9 @@
</item>
<item row="6" column="0">
<widget class="QCheckBox" name="autodetectJavaCheckBox">
<property name="toolTip">
<string>Automatically selects the Java version that is compatible with the current Minecraft instance, based on the major version required.</string>
</property>
<property name="text">
<string>Autodetect Java version</string>
</property>
@ -299,6 +302,9 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Automatically downloads and selects the Java version recommended by Mojang.</string>
</property>
<property name="text">
<string>Auto-download Mojang Java</string>
</property>