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

[Color picker] Fix dashboard shortcut #37547

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mantaionut
Copy link
Contributor

@mantaionut mantaionut commented Feb 20, 2025

Summary of the Pull Request

Fix Color picker dashboard not showing the correct shortcut.

PR Checklist

Detailed Description of the Pull Request / Additional comments

When creating the ColorPickerViewModel it was initialized with null instead of ColorPickerSettings settings.
So this PR changes it from null to ColorPickerSettings.

Validation Steps Performed

Tested by changing the shortcut for Color Picker and then checking in dashboard if the shortcut was changed there too.

@mantaionut mantaionut changed the title Fix color picker dashboard [Color picker] Fix dashboard shortcut Feb 20, 2025

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/settings-ui/Settings.UI/ViewModels/ColorPickerViewModel.cs:59

  • The null-check for colorPickerSettingsRepository has been removed, which might lead to a runtime exception if it is null. Consider adding a null-check (or an explicit exception) similar to the one used for settingsUtils to ensure that colorPickerSettingsRepository is not null.
_colorPickerSettings = colorPickerSettingsRepository.SettingsConfig;
@shuaiyuanxx
Copy link
Contributor

The functionality has been verified, and the issue has been resolved. Thank you for your contribution!

@stefansjfw
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stefansjfw
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stefansjfw
Copy link
Collaborator

/azp run

1 similar comment
@stefansjfw
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

Successfully merging this pull request may close these issues.

4 participants