Skip to content

Commit

Permalink
Fix a crash when showTabsInTitlebar:false (#13561)
Browse files Browse the repository at this point in the history
Does what it says on the tin.
  • Loading branch information
zadjii-msft authored Jul 22, 2022
1 parent 45b1cde commit 5ea25f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cascadia/WindowsTerminal/AppHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,10 @@ void AppHost::_PropertyChangedHandler(const winrt::Windows::Foundation::IInspect
{
if (e.PropertyName() == L"TitlebarBrush")
{
auto nonClientWindow{ static_cast<NonClientIslandWindow*>(_window.get()) };
nonClientWindow->SetTitlebarBackground(_logic.TitlebarBrush());
if (_useNonClientArea)
{
auto nonClientWindow{ static_cast<NonClientIslandWindow*>(_window.get()) };
nonClientWindow->SetTitlebarBackground(_logic.TitlebarBrush());
}
}
}

0 comments on commit 5ea25f1

Please sign in to comment.