Update OnlineUpdater.cpp

[skip ci]
This commit is contained in:
DavidXanatos 2023-10-26 16:27:08 +02:00
parent 52a656d317
commit c82f8b6978
1 changed files with 2 additions and 1 deletions

View File

@ -294,7 +294,8 @@ void COnlineUpdater::LoadState()
QString COnlineUpdater::GetOnNewUpdateOption() const
{
if (!g_CertInfo.active || g_CertInfo.expired)
QString ReleaseChannel = theConf->GetString("Options/ReleaseChannel", "stable");
if (ReleaseChannel != "preview" && (!g_CertInfo.active || g_CertInfo.expired)) // allow revisions for previwe channel
return "ignore"; // this service requires a valid certificate
return theConf->GetString("Options/OnNewUpdate", "ignore");
}