-
Notifications
You must be signed in to change notification settings - Fork 635
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
set IsFirstRun to false if hide report options is true #11530
Conversation
@@ -914,6 +914,11 @@ private void DynamoView_Loaded(object sender, EventArgs e) | |||
// If first run, Collect Info Prompt will appear | |||
UsageReportingManager.Instance.CheckIsFirstRun(this, dynamoViewModel.BrandingResourceProvider); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit hard to understand from first glance, to me it seems we may want to fold the dynamoViewModel.HideReportOptions
check into CheckIsFirstRun()
at https://github.com/DynamoDS/Dynamo/blob/master/src/DynamoCoreWpf/Services/UsageReportingManager.cs#L154 so we do not skip the check/setting FirstRun entirely but only skip the usage prompt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@QilongTang let me give that a shot.
@QilongTang PTAL |
@mjkkirschner I think this one will need cherry-pick right? |
doing it now 😉 |
* Update DynamoView.xaml.cs * add test add internal setter * review comments Co-authored-by: michael kirschner <[email protected]>
* Update DynamoView.xaml.cs * add test add internal setter * review comments Co-authored-by: michael kirschner <[email protected]> Co-authored-by: michael kirschner <[email protected]>
Purpose
when
hide report options
is enabled, the prompt to request user analytics is also hidden - this function has the side effect thatIsFirstRun
is set to false so the gallery is not shown again.If
hide report options
is enabled we setIsFirstRun
to false after this check, but before trying to raise a gallery window.TODO
Declarations
Check these if you believe they are true
*.resx
files