mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #834, improved default value for last set/models simulator
Remark: The bug itself was slightly related to the default value, as only the default loader suffered from a not reset flag
This commit is contained in:
@@ -69,16 +69,12 @@ namespace BlackMisc
|
||||
//! Last selection
|
||||
struct TModelCacheLastSelection : public BlackMisc::TDataTrait<BlackMisc::Simulation::CSimulatorInfo>
|
||||
{
|
||||
//! Default value
|
||||
static const BlackMisc::Simulation::CSimulatorInfo &defaultValue()
|
||||
{
|
||||
static const BlackMisc::Simulation::CSimulatorInfo s(BlackMisc::Simulation::CSimulatorInfo::guessDefaultSimulator());
|
||||
return s;
|
||||
}
|
||||
|
||||
//! First load is synchronous
|
||||
static constexpr bool isPinned() { return true; }
|
||||
|
||||
//! Default simulator
|
||||
static const BlackMisc::Simulation::CSimulatorInfo &defaultValue() { return CSimulatorInfo::guessDefaultSimulator(); }
|
||||
|
||||
//! Key
|
||||
static const char *key() { return "modelcachelastselection"; }
|
||||
};
|
||||
@@ -118,16 +114,12 @@ namespace BlackMisc
|
||||
//! Last selection
|
||||
struct TModelSetLastSelection : public BlackMisc::TDataTrait<BlackMisc::Simulation::CSimulatorInfo>
|
||||
{
|
||||
//! Default value
|
||||
static const BlackMisc::Simulation::CSimulatorInfo &defaultValue()
|
||||
{
|
||||
static const BlackMisc::Simulation::CSimulatorInfo s(BlackMisc::Simulation::CSimulatorInfo::guessDefaultSimulator());
|
||||
return s;
|
||||
}
|
||||
|
||||
//! First load is synchronous
|
||||
static constexpr bool isPinned() { return true; }
|
||||
|
||||
//! Default simulator
|
||||
static const BlackMisc::Simulation::CSimulatorInfo &defaultValue() { return CSimulatorInfo::guessDefaultSimulator(); }
|
||||
|
||||
//! Key
|
||||
static const char *key() { return "modelsetlastselection"; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user