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

Navigation menu refactor #867

Merged
merged 3 commits into from
Nov 22, 2022
Merged

Navigation menu refactor #867

merged 3 commits into from
Nov 22, 2022

Conversation

anttimaki
Copy link
Collaborator

This is a remake of #799 that also takes into account a review comment from a forked repo's PR. The changes in the other repo got stuck in limbo as the plans changed, but are now needed in this repo as a part of a larger navbar refactoring which aims to make it possible to easily customise the navigation in TSMM.

The main purpose is to make the functionality for ensuring a game dir
is set reusable in other places.

While refactoring, the implementation was changed so that the game dir
is no longer set if it was set already. I'm not 100% certain I read the
code correctly, but it seems to me the old implementation would only set
the current value again, which is a no-op.

Refs TS-530
The main purpose is to make the functionality reusable in other places,
but this also DRYs up the NavigationMenu quite nicely.

resolveGameDir checks two separate directories, which seems a bit odd
but I'm so unfamiliar with the project that there's probably a good
reason for it and I've left that as it was.

Refs TS-530
@MythicManiac MythicManiac merged commit 92532c9 into develop Nov 22, 2022
@MythicManiac MythicManiac deleted the navigation-menu-refactor branch November 22, 2022 12:04
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

Successfully merging this pull request may close these issues.

2 participants