@@ -268,12 +268,18 @@ namespace winrt::TerminalApp::implementation
268
268
// of the settings that apply to all tabs.
269
269
// Return Value:
270
270
// - <none>
271
- void TerminalTab::UpdateSettings ()
271
+ void TerminalTab::UpdateSettings (const CascadiaSettings& settings )
272
272
{
273
273
ASSERT_UI_THREAD ();
274
274
275
275
// The tabWidthMode may have changed, update the header control accordingly
276
276
_UpdateHeaderControlMaxWidth ();
277
+
278
+ // Update the settings on all our panes.
279
+ _rootPane->WalkTree ([&](auto pane) {
280
+ pane->UpdateSettings (settings);
281
+ return false ;
282
+ });
277
283
}
278
284
279
285
// Method Description:
@@ -282,7 +288,7 @@ namespace winrt::TerminalApp::implementation
282
288
// - iconPath: The new path string to use as the IconPath for our TabViewItem
283
289
// Return Value:
284
290
// - <none>
285
- void TerminalTab::UpdateIcon (const winrt::hstring iconPath)
291
+ void TerminalTab::UpdateIcon (const winrt::hstring& iconPath)
286
292
{
287
293
ASSERT_UI_THREAD ();
288
294
@@ -377,7 +383,7 @@ namespace winrt::TerminalApp::implementation
377
383
return RS_ (L" MultiplePanes" );
378
384
}
379
385
const auto activeContent = GetActiveContent ();
380
- return activeContent ? activeContent.Title () : L" " ;
386
+ return activeContent ? activeContent.Title () : winrt::hstring{ L" " } ;
381
387
}
382
388
383
389
// Method Description:
@@ -987,7 +993,6 @@ namespace winrt::TerminalApp::implementation
987
993
if (const auto & termContent{ content.try_as <TerminalApp::TerminalPaneContent>() })
988
994
{
989
995
_addBroadcastHandlers (termContent.GetTerminal (), events);
990
-
991
996
}
992
997
}
993
998
0 commit comments