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

More customizable Main Menu #721

Merged
merged 5 commits into from Jul 26, 2023
Merged

More customizable Main Menu #721

merged 5 commits into from Jul 26, 2023

Conversation

ESurge
Copy link

@ESurge ESurge commented Jul 26, 2023

Changes in Loader

  • ExtMainAppsList renamed to MainMenuList as it makes more sense now
  • Loader will initiate and populate MainMenuList from contents of /ext/.config/cfw_mainmenu.txt
  • If /ext/.config/cfw_mainmenu.txt file is not found, Loader will populate a default app list within MainMenuList
  • If cfw_mainmenu.txt file exists but MainMenuList is still empty or only has 1 app, CFW Settings and Settings apps will be added to prevent crashing and/or empty menu
  • Removed and added functions regarding the app list
  • Loader_Menu populates from MainMenuList

Changes in CFW Settings

  • Interfaces > Main Menu options have been updated with App Order/Move ability
  • Optimized/reduced list usage to unify app order
    • Start point updates when apps are added, removed, or moved within the app list
    • App list loaded from Loader instead of recreating a new list
  • Added protection to Remove App option to ensure a minimum of 2 apps remain on the main menu

Other

  • gui/modules/variable_item_list was modified a bit to prevent crashing
  • gui/modules/menu was modified to include a more descriptive message if main menu ever became empty. Also forced rename of some apps has been removed.

- Changes in `Loader`
  - `ExtMainAppsList` renamed to `MainMenuList` as it makes more sense now
  - `Loader` will initiate and populate `MainMenuList` from contents of `/ext/.config/cfw_mainmenu.txt`
  - If `/ext/.config/cfw_mainmenu.txt` file is not found `Loader` will populate a default app list within `MainMenuList`
  - If `cfw_mainmenu.txt` file exists but `MainMenuList` is still empty, the `CFW Settings` app will be added to prevent empty menu
  - Removed and added functions regarding the app list
  - `Loader_Menu` populates from `MainMenuList`
- Changes in `CFW Settings`
  - `Interfaces` > `Main Menu` options have been updated with App Order/Move ability
  - Optimized/reduced list usage to unify app order
    - Start point changes when changes apps are added, removed, or moved to the app list
    - Main Menu app list loaded from `Loader` instead of recreating a new list
  - Added protection to `Remove App` option to ensure a minimum of 1 app remains on the main menu
@ESurge ESurge requested a review from RogueMaster as a code owner July 26, 2023 01:21
@RogueMaster RogueMaster merged commit 7b9b528 into RogueMaster:420 Jul 26, 2023
RogueMaster pushed a commit that referenced this pull request Mar 11, 2024
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.

None yet

2 participants