Fix update loop between release (#1465)

This commit is contained in:
DanielSvoboda 2024-10-31 15:59:14 -03:00 committed by GitHub
parent cfa242ef5d
commit 496079b620

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);