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

Sort explanation services (updated) #1214

Merged
merged 8 commits into from
May 30, 2024
Merged

Conversation

gouttegd
Copy link
Collaborator

This PR builds upon @stefborg’s #1059 to add the fixes recommended by @ykazakov :

  • do not create a new ExplanationPreferences object when applying the changes in the preference dialog;
  • make sure the “move up”/“move down” buttons are initially disabled when the dialog is first shown and no explanation service is selected;
  • add a ”Change priority” label next to those buttons.

(I hope you don’t mind, @stefborg. I’m keen to release 5.6.4 before the end of the week.)

stefborg and others added 8 commits May 31, 2022 14:20
When applying changes in a ExplanationPreferencesGeneralPanel dialog,
save the changes to an instance-level ExplanationPreferences object
(that has itself been loaded upon initialisation of the dialog), rather
than to a new object created on the fly. This ensure that any previously
set "last explanation service" setting is preserved.
When initialising the ExplanationPreferencesGeneralPanel dialog, make
sure the "up" and "down" buttons are disabled if no row is selected in
the list of available explanation services (which is normally the case
when the dialog is created).
Add a label next to the "move up" / "move down" buttons in the
ExplanationPreferencesGeneralPanel dialog, to hopefully make it clearer
that the order of the listed explanation services matters.
@gouttegd gouttegd self-assigned this May 29, 2024
@stefborg
Copy link
Contributor

Thank you, @gouttegd for the fixes, they look good to me! I didn't have any time today to do it myself. And thanks to @ykazakov for the thorough testing!

@gouttegd gouttegd merged commit 3e9879b into master May 30, 2024
3 checks passed
@gouttegd gouttegd deleted the sort-explanation-services branch May 30, 2024 15:35
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.

2 participants