Skip to content
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

feat(DevTools): Add LaunchView property to DevToolsOptions #14008

Merged

Conversation

workgroupengineering
Copy link
Contributor

What does the pull request do?

Allow set the initial diagnostic view when launch DevTools

What is the current behavior?

When launch DevTools alwayes show Logical View

What is the updated/expected behavior with this PR?

Allow customize initial diagnostic view when launch DevTools

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Close #14006

Allow set the initial diagnostic view when launch DevTools
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0043078-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

/// <summary>
/// Diagnostic views available in DevTools
/// </summary>
public enum DevToolsViews
Copy link
Member

@MrJul MrJul Dec 21, 2023

Choose a reason for hiding this comment

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

Naming: only flags enums are usually plural.
This probably should be DevToolsViewType/Kind or something similar.

/// <summary>
/// Set <see cref="DevToolsViews"/> that show when DevTools launch
/// </summary>
public DevToolsViews LaunchView { get; init; }
Copy link
Member

Choose a reason for hiding this comment

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

Why init? All other options are mutable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think DevToolsOptions should be immutable. I proposed it for v 12.

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0043133-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Jan 3, 2024
Merged via the queue into AvaloniaUI:master with commit acc9f03 Jan 3, 2024
5 checks passed
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.

[DevTools] Allow set Initial View
4 participants