Skip to content

fix: Prevent initial create project dialog from being persistent#2785

Closed
aryanjsingh wants to merge 1 commit intophcode-dev:mainfrom
aryanjsingh:fix/issue-2763-initial-create-project-dialog-is-persist
Closed

fix: Prevent initial create project dialog from being persistent#2785
aryanjsingh wants to merge 1 commit intophcode-dev:mainfrom
aryanjsingh:fix/issue-2763-initial-create-project-dialog-is-persist

Conversation

@aryanjsingh
Copy link
Copy Markdown

Summary

The "show on startup" setting for the initial project dialog was not being respected. This was due to a race condition in StateManager where settings changed before the state file was fully loaded were being overwritten. This change ensures that the loaded state is merged with the current in-memory state, preserving any changes.

Changes

  • src/preferences/StateManager.js: The bug is caused by a race condition in StateManager.js. When loading the state file from disk, it would overwrite any in-memory state that had been set before the file read completed. The fix is to merge the loaded data with the in-memory data using _.extend, which preserves any settings that were changed during the loading process.

Related Issue

Closes #2763

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 3, 2026

@aryanjsingh aryanjsingh closed this Apr 4, 2026
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.

Initial create project dialog is persistent

1 participant