mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #709, fixed initial version displayed
(was not called when data were not updated)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user