Qt: Always display version info in settings

This commit is contained in:
Stenzek
2024-08-23 15:50:17 +10:00
parent 417c1e43dd
commit 5433b30fec
4 changed files with 38 additions and 21 deletions

View File

@@ -103,6 +103,15 @@ bool AutoUpdaterDialog::isSupported()
#endif
}
bool AutoUpdaterDialog::isOfficialBuild()
{
#if !__has_include("scmversion/tag.h")
return false;
#else
return true;
#endif
}
bool AutoUpdaterDialog::warnAboutUnofficialBuild()
{
//
@@ -746,7 +755,8 @@ bool AutoUpdaterDialog::processUpdate(const std::vector<u8>& update_data)
}
if (info.suffix() != QStringLiteral("app"))
{
reportError(fmt::format("Unexpected application suffix {} on {}.", info.suffix().toStdString(), bundle_path.value()));
reportError(
fmt::format("Unexpected application suffix {} on {}.", info.suffix().toStdString(), bundle_path.value()));
return false;
}