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 Menu Selection Memory Feature and Improve Navigation in Carch #12

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

harilvfs
Copy link
Owner

Description

  • Added functionality to remember the last selected menu items for both the main menu and submenu.
  • Fixed issue Submenu items automatically refresh after any script execution. #11
  • Improved/optimized existing functionality to enhance user experience.
  • Bugs Fixes.
  • Feature Added: Added memory functionality for menu selections.
  • Menu Improvement: The main menu and submenu now retain the last selected choice when revisited.

Context

This change enhances the user experience by allowing the main menu and submenu to remember the last selected option. It helps users quickly return to their previous choices, saving time and effort when navigating the menu. This update adds a new feature that improves the flow of the script, especially for repeated tasks or iterative setups.

How Has This Been Tested?

  • Tested on Arch Linux with the whiptail and dialog dependencies.
  • Verified that the last selected menu item is highlighted when returning to both the main menu and submenu.
  • Tested different scenarios, including exiting scripts and navigating back, to ensure the functionality works as expected.

Checklist

Please ensure your pull request meets the following requirements:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes do not introduce new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

Screenshots (if applicable)

N/A

Related Issues

Fix #11 Issue

Additional Notes

  • This change may impact future updates to the menu system; thorough testing is recommended after any modifications.
  • Further enhancements could include adding configuration options for resetting the remembered selections.

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

Successfully merging this pull request may close these issues.

Submenu items automatically refresh after any script execution.
1 participant