[GUI] Reorganise aircraft list view context menu

This commit is contained in:
Mat Sutcliffe
2021-09-05 15:53:59 +01:00
parent b06fef9e16
commit 0f5e727fc4
2 changed files with 8 additions and 2 deletions

View File

@@ -159,6 +159,12 @@ namespace BlackGui
//! Client COM related //! Client COM related
static const QString &pathClientCom() { static const QString p("Client.ATC/COM"); return p; } static const QString &pathClientCom() { static const QString p("Client.ATC/COM"); return p; }
//! Client flight plan
static const QString &pathClientFlightPlan() { static const QString p("Client.FlightPlan"); return p; }
//! Client follow in simulator
static const QString &pathClientFollowInSim() { static const QString p("Client.FollowInSim"); return p; }
//! Client simulation related //! Client simulation related
static const QString &pathClientSimulation() { static const QString p("ClientSimulation"); return p; } static const QString &pathClientSimulation() { static const QString p("ClientSimulation"); return p; }

View File

@@ -105,7 +105,7 @@ namespace BlackGui
if (m_withMenuFlightPlan && networkContext() && networkContext()->isConnected()) if (m_withMenuFlightPlan && networkContext() && networkContext()->isConnected())
{ {
menuActions.addAction(CIcons::appFlightPlan16(), "Flight plan", CMenuAction::pathClientNetwork(), { this, &CSimulatedAircraftView::showFlightPlanDialog }); menuActions.addAction(CIcons::appFlightPlan16(), "Flight plan", CMenuAction::pathClientFlightPlan(), { this, &CSimulatedAircraftView::showFlightPlanDialog });
} }
if (m_withMenuEnableAircraft) if (m_withMenuEnableAircraft)
{ {
@@ -113,7 +113,7 @@ namespace BlackGui
} }
if (m_withMenuHighlightAndFollow) if (m_withMenuHighlightAndFollow)
{ {
menuActions.addAction(CIcons::appAircraft16(), "Follow in simulator", CMenuAction::pathClientSimulationDisplay(), { this, &CSimulatedAircraftView::requestFollowInSimulator }); menuActions.addAction(CIcons::appAircraft16(), "Follow in simulator", CMenuAction::pathClientFollowInSim(), { this, &CSimulatedAircraftView::requestFollowInSimulator });
if (!menuActions.isEmpty()) { menuActions.addSeparator(CMenuAction::pathClientSimulationDisplay()); } if (!menuActions.isEmpty()) { menuActions.addSeparator(CMenuAction::pathClientSimulationDisplay()); }
if (aircraft.isPartsSynchronized()) if (aircraft.isPartsSynchronized())
{ {