Skip to content

Commit

Permalink
Make sure to update the maximize button's visual state on launch
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed May 19, 2020
1 parent c1df53f commit 46e5196
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ void NonClientIslandWindow::Initialize()
_rootGrid.Children().Append(_titlebar);

Controls::Grid::SetRow(_titlebar, 0);

// GH#3440 - When the titlebar is loaded (officially added to our UI tree),
// then make sure to update it's visual state to reflect if we're in the
// maximized state on launch.
_titlebar.Loaded([this](auto&&, auto&&) { _OnMaximizeChange(); });
}

// Method Description:
Expand Down

0 comments on commit 46e5196

Please sign in to comment.