Remove add-on update warning when launcher is running - #16845
Conversation
WalkthroughThe change in Changes
Sequence Diagram(s)Old FlowsequenceDiagram
actor User
participant NVDA
participant AddonStore
User ->> NVDA: Install or Update NVDA
NVDA ->> AddonStore: Check for updates
AddonStore -->> NVDA: Return updates
NVDA ->> User: Show addon update notification
New FlowsequenceDiagram
actor User
participant NVDA
participant AddonStore
User ->> NVDA: Install or Update NVDA
NVDA ->> NVDA: Check NVDAState.shouldWriteToDisk() & config.conf
alt Updates allowed
NVDA ->> AddonStore: Check for updates
AddonStore -->> NVDA: Return updates
NVDA ->> User: Show addon update notification
else No updates
NVDA -->> User: No notification during installation
end
Assessment against linked issues
Recent review detailsConfiguration used: .coderabbit.yml Files selected for processing (1)
Additional context usedPath-based instructions (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Link to issue number:
Fixes #16783
Summary of the issue:
The update notification for add-ons occurs on the NVDA installer.
This should not happen, it should only run where NVDA should write to disk (e.g. manage the state of add-ons).
This excludes secure mode and the launcher environment.
Description of user facing changes
Add-on update notifications should not occur on the launcher any more
Description of development approach
Check
NVDAState.shouldWriteToDiskrather thanglobalVars.appArgs.secure.Testing strategy:
Tested STR of #16783
Known issues with pull request:
Code Review Checklist:
Summary by CodeRabbit