-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Implement CascadiaSettings::Copy() #7877
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.
It's a shame that this doesn't work well with a macro for auto-synthesizing these Copy
methods. I highly expect either a merge conflict with this PR causing a property to not get copied, or for a future PR to forget to Copy
a property
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.
Seems pretty straightforward, do you think you could make a small test to test out the whole SUI scenario of making a copy, making some changes, and then replacing the original? Then check that the settings you've changed are what you expect them to be in the original copy.
Hello @carlos-zamora! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Summary of the Pull Request
This implements the
Copy
function forCascadiaSettings
. Copy performs a deep copy of aCascadiaSettings
object. This is needed for data binding in the Terminal Settings Editor.The
Copy
function was basically implemented in every settings model object. This was mostly just repetitive work.References
#7667 - TSM
#1564 - Settings UI
PR Checklist