Manager: Fix the status bar update message showing even on latest builds

Also fix translations and show an error message if the check fails
This commit is contained in:
Alexander Babikov
2025-08-14 01:41:08 +05:00
parent 13369dd121
commit 6141b780ec
27 changed files with 309 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ UpdateCheckDialog::upToDate()
ui->progressBar->setMaximum(100);
ui->progressBar->setValue(100);
ui->statusLabel->setVisible(true);
const auto statusText = tr("You are running the latest %1 version of 86Box: %2").arg(updateChannel == UpdateCheck::UpdateChannel::Stable ? "stable" : "beta", currentVersion);
const auto statusText = tr("You are running the latest %1 version of 86Box: %2").arg(updateChannel == UpdateCheck::UpdateChannel::Stable ? tr("stable") : tr("beta"), currentVersion);
ui->statusLabel->setText(statusText);
ui->buttonBox->setStandardButtons(QDialogButtonBox::Ok);
}