Skip to content

Commit

Permalink
fix: A380X temporarily deactivate the MSFS-PLN sync in the A380X (#9145)
Browse files Browse the repository at this point in the history
* Temporarily deactivate the MSFS-PLN sync in the A380X until feature is avail in the A380X.

* Undo import barrel

* Refactored hiding EFB option
  • Loading branch information
frankkopp authored and Saschl committed Nov 1, 2024
1 parent 6ff5f06 commit 6ed7487
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
1 change: 1 addition & 0 deletions fbw-a32nx/src/systems/instruments/src/EFB/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ render(
},
sim: {
cones: true,
msfsFplnSync: true,
pilotSeat: false,
registrationDecal: true,
wheelChocks: true,
Expand Down
1 change: 1 addition & 0 deletions fbw-a380x/src/systems/instruments/src/EFB/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ render(
},
sim: {
cones: false,
msfsFplnSync: false, // FIXME: Enable when MSFS FPLN sync is available
pilotSeat: true,
registrationDecal: false, // TODO FIXME: Enable when dynamic registration decal is completed
wheelChocks: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ interface RealismOptions {

interface SimOptions {
cones: boolean;
msfsFplnSync: boolean;
pilotSeat: boolean;
registrationDecal: boolean;
wheelChocks: boolean;
pilotSeat: boolean;
}

interface ThrottleOptions {
Expand Down Expand Up @@ -93,6 +94,7 @@ export const AircraftContext = createContext<AircraftEfbContext>({
},
sim: {
cones: false,
msfsFplnSync: false,
pilotSeat: false,
registrationDecal: false,
wheelChocks: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) 2023-2024 FlyByWire Simulations
// SPDX-License-Identifier: GPL-3.0

/* eslint-disable max-len */
/* eslint-disable max-len */
import React, { useContext, useState } from 'react';
import {
Expand Down Expand Up @@ -75,19 +76,21 @@ export const SimOptionsPage = () => {
</SelectGroup>
</SettingItem>

<SettingItem name={t('Settings.SimOptions.SyncMsfsFlightPlan')}>
<SelectGroup>
{fpSyncButtons.map((button) => (
<SelectItem
key={button.setting}
onSelect={() => setFpSync(button.setting)}
selected={fpSync === button.setting}
>
{button.name}
</SelectItem>
))}
</SelectGroup>
</SettingItem>
{aircraftContext.settingsPages.sim.msfsFplnSync && (
<SettingItem name={t('Settings.SimOptions.SyncMsfsFlightPlan')}>
<SelectGroup>
{fpSyncButtons.map((button) => (
<SelectItem
key={button.setting}
onSelect={() => setFpSync(button.setting)}
selected={fpSync === button.setting}
>
{button.name}
</SelectItem>
))}
</SelectGroup>
</SettingItem>
)}

<SettingItem name={t('Settings.SimOptions.EnableSimBridge')}>
<SelectGroup>
Expand Down

0 comments on commit 6ed7487

Please sign in to comment.