Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

shana
Copy link
Contributor

@shana shana commented Nov 9, 2015

Fixes #147

using (var mruKey = newProjectKey?.OpenSubKey(MRUKeyPath, true))
var newProjectKey = Registry.CurrentUser.OpenSubKey(NewProjectDialogKeyPath, true);
if (newProjectKey == null)
newProjectKey = Registry.CurrentUser.CreateSubKey(NewProjectDialogKeyPath);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not

                var newProjectKey = Registry.CurrentUser.OpenSubKey(NewProjectDialogKeyPath, true)
                    ?? Registry.CurrentUser.CreateSubKey(NewProjectDialogKeyPath);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not indeed 😄

@haacked haacked assigned shana and unassigned haacked Nov 11, 2015
@haacked
Copy link
Contributor

haacked commented Nov 11, 2015

🍶

@haacked
Copy link
Contributor

haacked commented Nov 11, 2015

Back to you! 🌰

@shana
Copy link
Contributor Author

shana commented Nov 12, 2015

Asserted and null propagated! 🏈

@shana shana assigned haacked and unassigned shana Nov 12, 2015
haacked added a commit that referenced this pull request Nov 12, 2015
Fix setting create project dialog path when keys don't exist
@haacked haacked merged commit 700cc32 into master Nov 12, 2015
@haacked haacked deleted the shana/147-create-project-path branch November 12, 2015 17:22
@haacked
Copy link
Contributor

haacked commented Nov 12, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants