mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-10 00:48:23 -06:00
In #16172, we removed the propagation of the profile down into the Terminal Pane Content. It was holding on to the profile from the _old_ settings model (😱). This also broke background image hot reload.
This commit is contained in:
parent
c0f9a198c6
commit
666a75bc70
@ -340,8 +340,12 @@ namespace winrt::TerminalApp::implementation
|
||||
RestartTerminalRequested.raise(*this, nullptr);
|
||||
}
|
||||
|
||||
void TerminalPaneContent::UpdateSettings(const CascadiaSettings& /*settings*/)
|
||||
void TerminalPaneContent::UpdateSettings(const CascadiaSettings& settings)
|
||||
{
|
||||
// Reload our profile from the settings model to propagate bell mode, icon, and close on exit mode (anything that uses _profile).
|
||||
const auto profile{ settings.FindProfile(_profile.Guid()) };
|
||||
_profile = profile ? profile : settings.ProfileDefaults();
|
||||
|
||||
if (const auto& settings{ _cache.TryLookup(_profile) })
|
||||
{
|
||||
_control.UpdateControlSettings(settings.DefaultSettings(), settings.UnfocusedSettings());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user