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

[QuickAccent]Fix unstable language loading #36721

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaimecbernardo
Copy link
Collaborator

Summary of the Pull Request

When opening the list of language selection of Quick Accent on Settings, the first load selects all the languages one by one, triggering a save everytime, meaning the saved state might get into a state where some of the languages are missing.
This PR guards against triggering the "selctionChanged" event if all we're doing is the first load.

It also adds a check against loading a non existing language and adding a null entry to the loaded array after LINQ.

PR Checklist

Validation Steps Performed

Selected many languages and opened QuickAccent's settings.json to verify the language list is well saved. After that, unload the QuickAccent page, load it again and open the selected languages expander. Verify the saved file is still good. Do it many times.

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.

1 participant