mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
fix: remove same errors from github
This commit is contained in:
@@ -102,7 +102,11 @@ namespace swift::core::application
|
||||
}
|
||||
|
||||
//! \copydoc swift::misc::TSettingTrait::defaultValue
|
||||
static const QStringList &defaultValue() { return QStringList {}; }
|
||||
static const QStringList &defaultValue()
|
||||
{
|
||||
static const QStringList emptyList;
|
||||
return emptyList;
|
||||
}
|
||||
};
|
||||
} // namespace swift::core::application
|
||||
|
||||
|
||||
@@ -422,9 +422,9 @@ namespace swift::gui::components
|
||||
|
||||
// loop for all enabled simulators
|
||||
CSimulatorInfo sims = this->m_enabledSimulators.get();
|
||||
unsigned int number = 96;
|
||||
unsigned int number = sims.toInt();
|
||||
|
||||
// Iteriere
|
||||
// iterate
|
||||
// for (const auto &simInfo : number)
|
||||
//{
|
||||
// m_simulator = simInfo;
|
||||
@@ -435,7 +435,7 @@ namespace swift::gui::components
|
||||
for (int i = 0; i < totalBits; ++i)
|
||||
{
|
||||
if (number & (1u << i))
|
||||
{ // Prüfen, ob Bit i gesetzt ist
|
||||
{ // check, if bit i is set
|
||||
m_simulator = std::pow(2.0, i);
|
||||
this->createModelSet();
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ namespace swift::misc::simulation
|
||||
const bool xp = jxp.isBool() ? jxp.toBool() : CDatastoreUtility::dbBoolStringToBool(jxp.toString());
|
||||
const bool p3d = jp3d.isBool() ? jp3d.toBool() : CDatastoreUtility::dbBoolStringToBool(jp3d.toString());
|
||||
const bool fg = jfg.isBool() ? jfg.toBool() : CDatastoreUtility::dbBoolStringToBool(jfg.toString());
|
||||
const bool msfs =
|
||||
const bool msfs2020 =
|
||||
jmsfs2020.isBool() ? jmsfs2020.toBool() : CDatastoreUtility::dbBoolStringToBool(jmsfs2020.toString());
|
||||
const bool msfs2024 =
|
||||
jmsfs2024.isBool() ? jmsfs2024.toBool() : CDatastoreUtility::dbBoolStringToBool(jmsfs2024.toString());
|
||||
|
||||
@@ -129,6 +129,8 @@ namespace swift::misc::simulation
|
||||
//! Number simulators selected
|
||||
int numberSimulators() const;
|
||||
|
||||
int toInt() const { return m_simulator; }
|
||||
|
||||
//! Matches all simulators
|
||||
bool matchesAll(const CSimulatorInfo &otherInfo) const;
|
||||
|
||||
|
||||
@@ -502,13 +502,21 @@ namespace swift::simplugin::msfs2024common
|
||||
|
||||
m_simulatorInfo = this->getSimulatorInfo();
|
||||
|
||||
bool givenDistributorsOnly = false;
|
||||
bool dbDataOnly = false;
|
||||
bool dbIcaoOnly = false;
|
||||
bool incremnental = false;
|
||||
bool sortByDistributor = true;
|
||||
bool consolidateWithDb = false;
|
||||
bool ShowAllInstalledModells = true; // msfs20424 always show all installed models
|
||||
bool givenDistributorsOnly = true;
|
||||
bool dbDataOnly = true;
|
||||
bool dbIcaoOnly = true;
|
||||
bool incremnental = true;
|
||||
bool sortByDistributor = false;
|
||||
bool consolidateWithDb = true;
|
||||
bool ShowAllInstalledModells = false; // msfs20424 always show all installed models
|
||||
|
||||
givenDistributorsOnly = false;
|
||||
dbDataOnly = false;
|
||||
dbIcaoOnly = false;
|
||||
incremnental = false;
|
||||
sortByDistributor = true;
|
||||
consolidateWithDb = false;
|
||||
ShowAllInstalledModells = true; // msfs20424 always show all installed models
|
||||
|
||||
if (gui_application)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user