mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 17:02:40 +00:00
formatting
This commit is contained in:
parent
5680008cae
commit
ee46b6bbab
@ -40,9 +40,8 @@ void CompatibilityInfoClass::UpdateCompatibilityDatabase(QWidget* parent) {
|
|||||||
|
|
||||||
if (reply->error() != QNetworkReply::NoError) {
|
if (reply->error() != QNetworkReply::NoError) {
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
QMessageBox::critical(
|
QMessageBox::critical(parent, tr("Error"),
|
||||||
parent, tr("Error"),
|
tr("Unable to update compatibility data! Try again later."));
|
||||||
tr("Unable to update compatibility data! Try again later."));
|
|
||||||
// Try loading compatibility_file.json again
|
// Try loading compatibility_file.json again
|
||||||
LoadCompatibilityFile();
|
LoadCompatibilityFile();
|
||||||
return;
|
return;
|
||||||
@ -141,8 +140,9 @@ bool CompatibilityInfoClass::LoadCompatibilityFile() {
|
|||||||
// Returns true if compatibility is loaded succescfully
|
// Returns true if compatibility is loaded succescfully
|
||||||
QFileInfo check_file(m_compatibility_filename);
|
QFileInfo check_file(m_compatibility_filename);
|
||||||
const auto modified_delta = QDateTime::currentDateTime() - check_file.lastModified();
|
const auto modified_delta = QDateTime::currentDateTime() - check_file.lastModified();
|
||||||
if (!check_file.exists() || !check_file.isFile() &&
|
if (!check_file.exists() ||
|
||||||
std::chrono::duration_cast<std::chrono::minutes>(modified_delta).count() > 60) {
|
!check_file.isFile() &&
|
||||||
|
std::chrono::duration_cast<std::chrono::minutes>(modified_delta).count() > 60) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,12 +263,9 @@ void GameListFrame::SetCompatibilityItem(int row, int column, CompatibilityEntry
|
|||||||
tooltip_string = status_explanation;
|
tooltip_string = status_explanation;
|
||||||
} else {
|
} else {
|
||||||
tooltip_string =
|
tooltip_string =
|
||||||
"<p> <i>" + tr("Click to go to issue") + "</i>" +
|
"<p> <i>" + tr("Click to go to issue") + "</i>" + "<br>" + tr("Last updated") +
|
||||||
"<br>" +
|
|
||||||
tr("Last updated") +
|
|
||||||
QString(": %1 (%2)").arg(entry.last_tested.toString("yyyy-MM-dd"), entry.version) +
|
QString(": %1 (%2)").arg(entry.last_tested.toString("yyyy-MM-dd"), entry.version) +
|
||||||
"<br>" +
|
"<br>" + status_explanation + "</p>";
|
||||||
status_explanation + "</p>";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QPixmap circle_pixmap(16, 16);
|
QPixmap circle_pixmap(16, 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user