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