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

Fix buggy behavior in parts of the main menu #15736

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

siliconsniffer
Copy link
Contributor

@siliconsniffer siliconsniffer commented Jan 30, 2025

Add compact, short information about your PR for easier understanding:

This PR resolves some buggy behavior when searching or removing favorites.

  • Goal of the PR
    Provide a more intuitive user experience when searching or deleting favorites.
  • How does the PR work?
    It saves the current selection before searching so that it can be reused if a user should clear the search bar.
    When searching, it now also checks if the selected server is among the search results; if not, it will select the first compatible.
    Instead of keeping the selection when removing a server from favorites, now the selection will be moved to the server below.
  • Does it resolve any reported issue?
    Fixes [Discussion] Behavior of parts of the main menu #15545
  • Does this relate to a goal in the roadmap?
    2.3 hopefully

Preview

This PR:
image
Current Master:
image

How to test

Search servers (maybe the same as in the issue), remove favorites.
Notice how the selection is kept when clearing the search.

@SmallJoker SmallJoker added Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements @ Mainmenu labels Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Mainmenu Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discussion] Behavior of parts of the main menu
2 participants