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

Add support for multiple "Previous Route"s #13

Open
erikquinn opened this issue Feb 2, 2022 · 0 comments
Open

Add support for multiple "Previous Route"s #13

erikquinn opened this issue Feb 2, 2022 · 0 comments

Comments

@erikquinn
Copy link
Contributor

At the moment, the "Previous Route" button in the route menu, if pressed repeatedly, will simply revert to the one most recent route. Results in a loop, ie D->C->D->C.

This is presumably because the "previous" route is stored as a string of some sort of property of the aircraft instance. Instead store an array which holds all versions of the route. Then, at version D of the route, we are able to revert D->C->B->A. For bonus points, some sort of list showing all the previous routes, from which you can select the appropriate one would be AMAZING.

Once reverting to a previous route (say version B), it is safe to delete version B and everything that came after it (B+C+D) from the route history array-- you do not want to preserve a route reversion in the history, ie once you revert to previous, it should be impossible to "un-revert".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant