Skip to content

Commit d1799f5

Browse files
committed
Not updated if the version type is Alpha
1 parent 4129e28 commit d1799f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

project/third-party/QSimpleUpdater/src/Updater.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,12 @@ void Updater::onReply(QNetworkReply *reply)
427427
if (platform.contains("mandatory-update"))
428428
m_mandatoryUpdate = platform.value("mandatory-update").toBool();
429429

430-
/* Compare latest and current version */
431-
setUpdateAvailable(compare(latestVersion(), moduleVersion()));
430+
/* Must is <Beta> or <Release> */
431+
if (m_typeVersion.toUpper() != "ALPHA")
432+
{
433+
/* Compare latest and current version */
434+
setUpdateAvailable(compare(latestVersion(), moduleVersion()));
435+
}
432436
emit checkingFinished(url());
433437
}
434438

0 commit comments

Comments
 (0)