-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Settings UI: Renaming default color scheme applies to each profile instead of defaults section #9094
Comments
Oh man. I know exactly what the problem is:
We should also update |
Oof, you know what? I bet the loop here is forcing every profile to override the setting, too. terminal/src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp Lines 879 to 884 in 47f4b41
If you set BaseLayer's color scheme first, that check won't force an override ........ but that feels like "works because of circumstances", not "works because of good design" |
Good call. We need a |
`CascadiaSettings::UpdateColorSchemeReferences` had two bugs in it: 1. we would never check/update the base layer 2. we would explicitly set the color scheme on a profile referencing the old name This PR fixes both of those issues by checking/updating the base layer, and ensuring that we check if a profile has an explicit reference before updating it. Since the affected code is in TSM, I also created an automated local test. ## Validation Steps Performed Bug repro steps. Specifically tested [DHowett's scenario] too. Test added. Closes #9094 [DHowett's scenario]: #9094 (comment)
`CascadiaSettings::UpdateColorSchemeReferences` had two bugs in it: 1. we would never check/update the base layer 2. we would explicitly set the color scheme on a profile referencing the old name This PR fixes both of those issues by checking/updating the base layer, and ensuring that we check if a profile has an explicit reference before updating it. Since the affected code is in TSM, I also created an automated local test. ## Validation Steps Performed Bug repro steps. Specifically tested [DHowett's scenario] too. Test added. Closes #9094 [DHowett's scenario]: #9094 (comment) (cherry picked from commit 4251126)
Thanks again for the report! |
🎉This issue was addressed in #9103, which has now been successfully released as Handy links: |
Environment
Steps to reproduce
Expected behavior
The color scheme in the "Base Layer" settings should be updated to be 'bar' and changing it should affect all profiles.
Actual behavior
The color scheme in the "Base Layer" settings changes to "Campbell" and changing it has no effect on other profiles. Looking at the settings file you will see that each profile has had the
colorScheme
attribute added with the new name, and thecolorScheme
attribute in thedefaults
section still has the old name.The text was updated successfully, but these errors were encountered: