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-ons manager: handle the selected add-on changing in small-screen mode #6490

Merged
merged 1 commit into from Feb 8, 2022

Conversation

stevecotton
Copy link
Contributor

Fix another instance of issue #3059, where code assumes that all parts of the
add-ons manager's UI are accessible, an assumption that fails when the dialog
uses a stacked widget to handle small window sizes.

The up and down arrow keys select the previous or next add-on in the list,
even when the small-window layout is hiding the list. That feels like a feature
rather than a bug, as it's useful and an understandable UX; however it needs
the fix in this commit so that on_addon_select() doesn't throw an exception
and close the dialog. The new code is the same as the fix that 050feb6
applied to on_selected_version_change, traversing the stacked widget to get the
info.

Fixes #6485.

…mode

Fix another instance of issue wesnoth#3059, where code assumes that all parts of the
add-ons manager's UI are accessible, an assumption that fails when the dialog
uses a stacked widget to handle small window sizes.

The up and down arrow keys select the previous or next add-on in the list,
even when the small-window layout is hiding the list. That feels like a feature
rather than a bug, as it's useful and an understandable UX; however it needs
the fix in this commit so that on_addon_select() doesn't throw an exception
and close the dialog. The new code is the same as the fix that 050feb6
applied to on_selected_version_change, traversing the stacked widget to get the
info.
@stevecotton stevecotton added Bug Issues involving unexpected behavior. UI User interface issues, including both back-end and front-end issues. Add-ons Issues with the add-ons client and/or server. Fwdport A reminder of a bugfix that was added to the stable branch that needs to be duplicated on master. labels Feb 6, 2022
@stevecotton stevecotton self-assigned this Feb 6, 2022
Copy link
Member

@Wedge009 Wedge009 left a comment

Choose a reason for hiding this comment

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

Confirm issue resolution. I like that the details page updates along with the change of add-on selection in the background, as it would in the 'large screen' layout.

Will you be forward-porting on merge?

@stevecotton
Copy link
Contributor Author

Thanks, and I'm forward-porting it now.

@stevecotton stevecotton merged commit 6a72b2e into wesnoth:1.16 Feb 8, 2022
@stevecotton stevecotton deleted the i6485_addons_up_down_1_16 branch February 8, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Add-ons Issues with the add-ons client and/or server. Bug Issues involving unexpected behavior. Fwdport A reminder of a bugfix that was added to the stable branch that needs to be duplicated on master. UI User interface issues, including both back-end and front-end issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants