-
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
Fix settings not updating on reload #9289
Conversation
@@ -876,7 +876,7 @@ namespace winrt::TerminalApp::implementation | |||
|
|||
if (debugConnection) // this will only be set if global debugging is on and tap is active | |||
{ | |||
TermControl newControl{ settings, debugConnection }; | |||
TermControl newControl{ *(winrt::get_self<TerminalSettings>(settings)->CreateChild()), debugConnection }; |
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.
This change doesn't affect the settings reload bug but I figured we should update this call as well
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 actually will impact reload, if the pane is a debug tap pane :D
@@ -1840,7 +1840,7 @@ namespace winrt::TerminalApp::implementation | |||
return; | |||
} | |||
|
|||
TermControl newControl{ controlSettings, controlConnection }; | |||
TermControl newControl{ *(winrt::get_self<TerminalSettings>(controlSettings)->CreateChild()), controlConnection }; |
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.
Oh gosh. Can you file a Code Health task to clean up all the different places in which we create a TerminalControl with its settings? I don't love that we had to make this fix in multiple places.
I think you meant to close #9280? |
Yes... thank you for the catch |
Hello @PankajBhojwani! Because this pull request has the Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 8 hours, a condition that will be fulfilled in about 6 hours 13 minutes. No worries though, I will be back when the time is right! 😉 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
Fix for #9280
In #8602, we started passing a child of the
TerminalSettings
to the control upon tab initialization, but forgot to do the same when new controls get created on a pane split.PR Checklist
Validation Steps Performed
Settings reload with multiple panes works