-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
base: main
Are you sure you want to change the base?
Conversation
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.
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;
The functionality has been verified, and the issue has been resolved. Thank you for your contribution! |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
1 similar comment
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.