mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Follow up of T156, improved setup loading dialog
* allow to load the delivered setup file if there are no other data * display setup cache information
This commit is contained in:
committed by
Mathew Sutcliffe
parent
bdbf2e75b4
commit
071f327fca
@@ -526,6 +526,18 @@ namespace BlackCore
|
||||
return m_setup.get();
|
||||
}
|
||||
|
||||
bool CSetupReader::hasCachedSetup() const
|
||||
{
|
||||
const CGlobalSetup cachedSetup = m_setup.get();
|
||||
const bool cacheAvailable = cachedSetup.wasLoaded();
|
||||
return cacheAvailable;
|
||||
}
|
||||
|
||||
QDateTime CSetupReader::getSetupCacheTimestamp() const
|
||||
{
|
||||
return m_setup.getTimestamp();
|
||||
}
|
||||
|
||||
bool CSetupReader::prefillCacheWithLocalResourceBootstrapFile()
|
||||
{
|
||||
if (m_shutdown) { return false; }
|
||||
@@ -554,6 +566,17 @@ namespace BlackCore
|
||||
return m_distributions.get();
|
||||
}
|
||||
|
||||
bool CSetupReader::hasCachedDistributionInfo() const
|
||||
{
|
||||
const CDistributionList distributions = m_distributions.get();
|
||||
return !distributions.isEmpty();
|
||||
}
|
||||
|
||||
QDateTime CSetupReader::getDistributionCacheTimestamp() const
|
||||
{
|
||||
return m_distributions.getTimestamp();
|
||||
}
|
||||
|
||||
QString CSetupReader::getLastSuccessfulDistributionUrl() const
|
||||
{
|
||||
QReadLocker l(&m_lockDistribution);
|
||||
|
||||
Reference in New Issue
Block a user