Ref T246, function to display model count and timestamp of model/set caches

This commit is contained in:
Klaus Basan
2018-07-17 18:56:22 +02:00
parent 3b460af8a6
commit 0023fbb57f
7 changed files with 53 additions and 8 deletions

View File

@@ -38,6 +38,12 @@ namespace BlackMisc
return is.arg(this->getCachedModelsCount(CSimulatorInfo::FSX)).arg(this->getCachedModelsCount(CSimulatorInfo::P3D)).arg(this->getCachedModelsCount(CSimulatorInfo::FS9));
}
QString IMultiSimulatorModelCaches::getCacheCountAndTimestamp(const CSimulatorInfo &simulator) const
{
static const QString s("%1 models, ts: %2");
return s.arg(this->getCachedModelsCount(simulator)).arg(this->getCacheTimestamp(simulator).toString("yyyy-MM-dd HH:mm:ss"));
}
void IMultiSimulatorModelCaches::onLastSelectionChanged()
{
this->synchronizeCurrentCache();