Add missing FG part

This commit is contained in:
Klaus Basan
2019-04-21 00:47:41 +02:00
parent 2d654e2fef
commit f6ea91e0b2

View File

@@ -557,6 +557,24 @@ namespace BlackGui
});
m_setNewActions.append(a);
}
if (sims.isFG())
{
QAction *a = new QAction(CIcons::appModels16(), "FG models", this);
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
{
Q_UNUSED(checked);
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::FG));
});
m_setActions.append(a);
a = new QAction(CIcons::appModels16(), "New set FG models", this);
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
{
Q_UNUSED(checked);
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::FG));
});
m_setNewActions.append(a);
}
QAction *a = new QAction(CIcons::appDistributors16(), "Apply distributor preferences", this);
connect(a, &QAction::triggered, ownModelSetComp, &CDbOwnModelSetComponent::distributorPreferencesChanged, Qt::QueuedConnection);