Fix update loop between release (#1465)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions

This commit is contained in:
DanielSvoboda 2024-10-31 15:59:14 -03:00 committed by GitHub
parent b7fe08519f
commit 7b16085c59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,7 +145,9 @@ void CheckUpdate::CheckForUpdates(const bool showMessage) {
return;
}
QString currentRev = QString::fromStdString(Common::g_scm_rev).left(7);
QString currentRev = (updateChannel == "Nightly")
? QString::fromStdString(Common::g_scm_rev).left(7)
: "v." + QString::fromStdString(Common::VERSION);
QString currentDate = Common::g_scm_date;
QDateTime dateTime = QDateTime::fromString(latestDate, Qt::ISODate);