Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context cleanup #276

Merged
merged 18 commits into from
Oct 13, 2024
Merged

Context cleanup #276

merged 18 commits into from
Oct 13, 2024

Conversation

ltoenning
Copy link
Contributor

No description provided.

@ltoenning ltoenning added the simplify Reduce application complexity label Mar 26, 2024
@ltoenning ltoenning self-assigned this Mar 26, 2024
Other methods in this component to open and delete the file only worked
in a local environment as well. For simplification allow writing this
file locally only as well.
Remote file operations via DBus are no longer used
The context returns CSimpleCommandParser::commandsHtmlHelp() as well
According to C++ Core Guideline C.133, protected data should be avoided
because they introducing complexity and bugs. In this case for example,
the implementing contexts could just change the m_debugEnabled member
instead calling setDebugEnabled() if not paying attention.
setDebugEnabled() also emit a signal on change, which is accidentially
not emitted otherwise.
This method was only uses to provide a secondary way installing the
terrain probe. For simplicity we should only provide a single way to
install the probe (through the config wizard).
Enabling the terrain probe only works when running locally because it
directly accesses the simulator plugin.
To reduce complexity, there should only be a single way to start the AFV
client (done on connectionStatusChange of IContextNetwork)
This also removes a dependency of the network context from the
OwnAircraft context
Always use the VATSIM online map instead of providing our own map widget
The LED is a leftover from the pre-AFV voicerooms. The LED does not
light up when connected to UNICOM or CTAF frequencies which still can be
used to transmit & receive voice. This also removes the functionality
that the currently tuned station was displayed when hovering over the
"COMx" label. This feature was not documented and not known by many
users.
By removing these features, one context method is no longer required,
which further decouples the network context from the OwnAircraft context.
This setting is simulator specific and can already be adjusted from the
simulator plugin settings. To avoid complexity, it should only be
adjustable from one location. As this setting doesn't need to be
adjusted often inflight, it should be fine to not have it directly
accessible.
This also fixes a previous issue, where a change of the setting within
the simulator plugin settings did not propagated to the cockpit page.
@ltoenning ltoenning merged commit 0dba1b8 into main Oct 13, 2024
17 checks passed
@ltoenning ltoenning deleted the context_refactoring branch October 13, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
simplify Reduce application complexity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant