Skip to content

GUI: Fixes and cleanup when removing games #6701

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

Merged
merged 3 commits into from
Jun 10, 2025

Conversation

sluicebox
Copy link
Member

This PR fixes the launcher unnecessarily scrolling the list when removing a game. For a user such as myself with more than a full screen of games, this caused the list to confusingly jump around unpredictably. Now scrolling only occurs when setting a selection if the item isn't already visible, instead of always trying to re-scroll the newly selected item to the center.

While testing the scroll change, I found that list item selection doesn't work when grouping is enabled due an off-by-one bug from last year in da3c3d0, so that's fixed too.

This took a while to figure out because many supporting functions were named getNextPos, but there was nothing "next" about them, so I've renamed them.

sluicebox added 3 commits June 9, 2025 07:20
Fixes launcher scrolling when removing a game
Fixes the wrong item being selected when grouping is enabled
Copy link
Member

@criezy criezy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.
While working on other improvements for the grouped list widget (PR #6704) I also wanted to remove the scrolling when selecting an item that is already visible. So it's a change I approve of 😄
And the other changes also look good.

@bluegr
Copy link
Member

bluegr commented Jun 10, 2025

Thank you, this behavior has bugged me as well. The changes look good and straightforward. I've tested this, and it works great.

Thanks for your work on this!

@bluegr bluegr merged commit 2effd58 into scummvm:master Jun 10, 2025
8 checks passed
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.

3 participants