mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
refactor: clang format
This commit is contained in:
@@ -29,7 +29,6 @@ namespace swift::misc::simulation::msfs2024
|
|||||||
bool CAircraftModelLoaderMsfs2024::isLoadingFinished() const
|
bool CAircraftModelLoaderMsfs2024::isLoadingFinished() const
|
||||||
{
|
{
|
||||||
return !m_parserWorker || m_parserWorker->isFinished();
|
return !m_parserWorker || m_parserWorker->isFinished();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CAircraftModelLoaderMsfs2024::CAircraftModelLoaderMsfs2024(QObject *parent)
|
CAircraftModelLoaderMsfs2024::CAircraftModelLoaderMsfs2024(QObject *parent)
|
||||||
@@ -84,12 +83,12 @@ namespace swift::misc::simulation::msfs2024
|
|||||||
emit this->diskLoadingStarted(simulator, mode);
|
emit this->diskLoadingStarted(simulator, mode);
|
||||||
|
|
||||||
// TODO TZ need help: simplify, we don't need directories in this->performParsing for MSFS2024
|
// TODO TZ need help: simplify, we don't need directories in this->performParsing for MSFS2024
|
||||||
m_parserWorker = CWorker::fromTask(this, "CAircraftModelLoaderMsfs2024::performParsing",
|
m_parserWorker =
|
||||||
[this, modelConsolidation]() {
|
CWorker::fromTask(this, "CAircraftModelLoaderMsfs2024::performParsing", [this, modelConsolidation]() {
|
||||||
auto models = this->performParsing();
|
auto models = this->performParsing();
|
||||||
if (modelConsolidation) { modelConsolidation(models, true); }
|
if (modelConsolidation) { modelConsolidation(models, true); }
|
||||||
return models;
|
return models;
|
||||||
});
|
});
|
||||||
m_parserWorker->thenWithResult<CAircraftModelList>(this, [=](const auto &models) {
|
m_parserWorker->thenWithResult<CAircraftModelList>(this, [=](const auto &models) {
|
||||||
this->updateInstalledModels(models);
|
this->updateInstalledModels(models);
|
||||||
m_loadingMessages.freezeOrder();
|
m_loadingMessages.freezeOrder();
|
||||||
|
|||||||
@@ -152,15 +152,9 @@ namespace swift::misc::simulation::settings
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSimulatorSettings::setPropertyModelSet(bool value) { m_modelSet = value; }
|
void CSimulatorSettings::setPropertyModelSet(bool value) { m_modelSet = value; }
|
||||||
void CSimulatorSettings::setPropertyWithDbEntry(bool value)
|
void CSimulatorSettings::setPropertyWithDbEntry(bool value) { m_withDbEntry = value; }
|
||||||
{
|
void CSimulatorSettings::setPropertyDistributorFiltered(bool value) { m_distributorFiltered = value; }
|
||||||
m_withDbEntry = value;
|
|
||||||
}
|
|
||||||
void CSimulatorSettings::setPropertyDistributorFiltered(bool value)
|
|
||||||
{
|
|
||||||
m_distributorFiltered = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CSimulatorSettings::setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
|
void CSimulatorSettings::setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user