mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 03:25:36 +00:00
Qt: Improve clarity of unknown dump hashes
This commit is contained in:
parent
f2caec801d
commit
0a0ad3f9e2
@ -594,12 +594,19 @@ void GameSummaryWidget::onComputeHashClicked()
|
|||||||
|
|
||||||
if (found_serial != m_ui.serial->text().toStdString())
|
if (found_serial != m_ui.serial->text().toStdString())
|
||||||
{
|
{
|
||||||
const QString mismatch_str =
|
if (found_serial.empty())
|
||||||
tr("Serial Mismatch: %1 vs %2").arg(QString::fromStdString(found_serial)).arg(m_ui.serial->text());
|
{
|
||||||
if (!text.isEmpty())
|
text = tr("No known dump found that matches this hash.");
|
||||||
text = QStringLiteral("%1 | %2").arg(mismatch_str).arg(text);
|
}
|
||||||
else
|
else
|
||||||
text = mismatch_str;
|
{
|
||||||
|
const QString mismatch_str =
|
||||||
|
tr("Serial Mismatch: %1 vs %2").arg(QString::fromStdString(found_serial)).arg(m_ui.serial->text());
|
||||||
|
if (!text.isEmpty())
|
||||||
|
text = QStringLiteral("%1 | %2").arg(mismatch_str).arg(text);
|
||||||
|
else
|
||||||
|
text = mismatch_str;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setRevisionText(text);
|
setRevisionText(text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user