Skip to content

Check before saving Add-on Store settings#17920

Merged
SaschaCowley merged 1 commit into
betafrom
i17805
Apr 9, 2025
Merged

Check before saving Add-on Store settings#17920
SaschaCowley merged 1 commit into
betafrom
i17805

Conversation

@SaschaCowley

Copy link
Copy Markdown
Member

Link to issue number:

Fixes #17805
Follow-up to #17597

Summary of the issue:

An error is logged when exiting from the launcher, as addonStore.storeSettings._AddonStoreSettings.save is called regardless of the return value of NVDAState.shouldWriteToDisk.

Description of user facing changes

An error tone is no longer heard after running the launcher.

Description of development approach

Only attempt to save Add-on Store settings if NVDAState.shouldWriteToDisk returns True.

While the error was harmless, it was worrying some users.

Testing strategy:

Created a portable copy with the launcher for NVDA alpha 35962,a503ae32 to ensure the issue was present.

Created a launcher (scons launcher), and used it to create a portable copy. Verified that the issue no-longer occurs.

Known issues with pull request:

None.

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@coderabbitai summary

@SaschaCowley SaschaCowley requested a review from a team as a code owner April 9, 2025 04:08
@SaschaCowley SaschaCowley requested a review from seanbudd April 9, 2025 04:08
@SaschaCowley SaschaCowley changed the base branch from master to beta April 9, 2025 05:20
@SaschaCowley SaschaCowley merged commit 0436649 into beta Apr 9, 2025
@SaschaCowley SaschaCowley deleted the i17805 branch April 9, 2025 05:58
@github-actions github-actions Bot added this to the 2025.2 milestone Apr 9, 2025
@seanbudd seanbudd modified the milestones: 2025.2, 2025.1 Apr 10, 2025
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.

nvda alpha: error sound after having successfully updated and pressing the OK button

2 participants