refs #709, fixed initial version displayed

(was not called when data were not updated)
This commit is contained in:
Klaus Basan
2016-07-15 03:12:50 +02:00
parent 0db94de97d
commit ebcd738a4b
4 changed files with 128 additions and 84 deletions

View File

@@ -40,6 +40,11 @@ namespace BlackCore
return CBuildConfig::isBetaTest() ? getLatestVersionBeta() : getLatestVersionStable();
}
QString CUpdateInfo::getChannel() const
{
return CBuildConfig::isBetaTest() ? "beta" : "stable";
}
bool CUpdateInfo::hasSameType(const CUpdateInfo &otherDownload) const
{
return this->isDevelopment() == otherDownload.isDevelopment();
@@ -136,6 +141,5 @@ namespace BlackCore
break;
}
}
} // ns
} // ns

View File

@@ -69,6 +69,9 @@ namespace BlackCore
//! Latest version
QString getLatestVersion() const;
//! Version channel (Beta, Stable)
QString getChannel() const;
//! Last supported version stable
const QString &getLastSupportedVersionStable() const { return m_lastSupportedVersionStable; }