mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +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
|
//! \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
|
} // namespace swift::core::application
|
||||||
|
|
||||||
|
|||||||
@@ -422,9 +422,9 @@ namespace swift::gui::components
|
|||||||
|
|
||||||
// loop for all enabled simulators
|
// loop for all enabled simulators
|
||||||
CSimulatorInfo sims = this->m_enabledSimulators.get();
|
CSimulatorInfo sims = this->m_enabledSimulators.get();
|
||||||
unsigned int number = 96;
|
unsigned int number = sims.toInt();
|
||||||
|
|
||||||
// Iteriere
|
// iterate
|
||||||
// for (const auto &simInfo : number)
|
// for (const auto &simInfo : number)
|
||||||
//{
|
//{
|
||||||
// m_simulator = simInfo;
|
// m_simulator = simInfo;
|
||||||
@@ -435,7 +435,7 @@ namespace swift::gui::components
|
|||||||
for (int i = 0; i < totalBits; ++i)
|
for (int i = 0; i < totalBits; ++i)
|
||||||
{
|
{
|
||||||
if (number & (1u << 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);
|
m_simulator = std::pow(2.0, i);
|
||||||
this->createModelSet();
|
this->createModelSet();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ namespace swift::misc::simulation
|
|||||||
const bool xp = jxp.isBool() ? jxp.toBool() : CDatastoreUtility::dbBoolStringToBool(jxp.toString());
|
const bool xp = jxp.isBool() ? jxp.toBool() : CDatastoreUtility::dbBoolStringToBool(jxp.toString());
|
||||||
const bool p3d = jp3d.isBool() ? jp3d.toBool() : CDatastoreUtility::dbBoolStringToBool(jp3d.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 fg = jfg.isBool() ? jfg.toBool() : CDatastoreUtility::dbBoolStringToBool(jfg.toString());
|
||||||
const bool msfs =
|
const bool msfs2020 =
|
||||||
jmsfs2020.isBool() ? jmsfs2020.toBool() : CDatastoreUtility::dbBoolStringToBool(jmsfs2020.toString());
|
jmsfs2020.isBool() ? jmsfs2020.toBool() : CDatastoreUtility::dbBoolStringToBool(jmsfs2020.toString());
|
||||||
const bool msfs2024 =
|
const bool msfs2024 =
|
||||||
jmsfs2024.isBool() ? jmsfs2024.toBool() : CDatastoreUtility::dbBoolStringToBool(jmsfs2024.toString());
|
jmsfs2024.isBool() ? jmsfs2024.toBool() : CDatastoreUtility::dbBoolStringToBool(jmsfs2024.toString());
|
||||||
|
|||||||
@@ -129,6 +129,8 @@ namespace swift::misc::simulation
|
|||||||
//! Number simulators selected
|
//! Number simulators selected
|
||||||
int numberSimulators() const;
|
int numberSimulators() const;
|
||||||
|
|
||||||
|
int toInt() const { return m_simulator; }
|
||||||
|
|
||||||
//! Matches all simulators
|
//! Matches all simulators
|
||||||
bool matchesAll(const CSimulatorInfo &otherInfo) const;
|
bool matchesAll(const CSimulatorInfo &otherInfo) const;
|
||||||
|
|
||||||
|
|||||||
@@ -502,13 +502,21 @@ namespace swift::simplugin::msfs2024common
|
|||||||
|
|
||||||
m_simulatorInfo = this->getSimulatorInfo();
|
m_simulatorInfo = this->getSimulatorInfo();
|
||||||
|
|
||||||
bool givenDistributorsOnly = false;
|
bool givenDistributorsOnly = true;
|
||||||
bool dbDataOnly = false;
|
bool dbDataOnly = true;
|
||||||
bool dbIcaoOnly = false;
|
bool dbIcaoOnly = true;
|
||||||
bool incremnental = false;
|
bool incremnental = true;
|
||||||
bool sortByDistributor = true;
|
bool sortByDistributor = false;
|
||||||
bool consolidateWithDb = false;
|
bool consolidateWithDb = true;
|
||||||
bool ShowAllInstalledModells = true; // msfs20424 always show all installed models
|
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)
|
if (gui_application)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user