mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Ref T455, preselect simulator in wizard if there are models
This commit is contained in:
@@ -162,6 +162,19 @@ namespace BlackMisc
|
||||
return withInitializedCache;
|
||||
}
|
||||
|
||||
CSimulatorInfo IMultiSimulatorModelCaches::simulatorsWithModels() const
|
||||
{
|
||||
CSimulatorInfo withModels;
|
||||
for (const CSimulatorInfo &simInfo : CSimulatorInfo::allSimulators().asSingleSimulatorSet())
|
||||
{
|
||||
if (this->getCachedModelsCount(simInfo) > 0)
|
||||
{
|
||||
withModels.add(simInfo);
|
||||
}
|
||||
}
|
||||
return withModels;
|
||||
}
|
||||
|
||||
CModelCaches::CModelCaches(bool synchronizeCache, QObject *parent) : IMultiSimulatorModelCaches(parent)
|
||||
{
|
||||
const CSimulatorInfo sim = BlackMisc::Simulation::CSimulatorInfo::guessDefaultSimulator();
|
||||
|
||||
@@ -220,6 +220,10 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
CSimulatorInfo simulatorsWithInitializedCache() const;
|
||||
|
||||
//! Simulators which have models
|
||||
//! \threadsafe
|
||||
CSimulatorInfo simulatorsWithModels() const;
|
||||
|
||||
//! Timestamp
|
||||
//! \threadsafe
|
||||
QDateTime getSynchronizedTimestamp(const CSimulatorInfo &simulator);
|
||||
|
||||
Reference in New Issue
Block a user