Skip to content

Commit 46e5196

Browse files
committed
Make sure to update the maximize button's visual state on launch
1 parent c1df53f commit 46e5196

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ void NonClientIslandWindow::Initialize()
205205
_rootGrid.Children().Append(_titlebar);
206206

207207
Controls::Grid::SetRow(_titlebar, 0);
208+
209+
// GH#3440 - When the titlebar is loaded (officially added to our UI tree),
210+
// then make sure to update it's visual state to reflect if we're in the
211+
// maximized state on launch.
212+
_titlebar.Loaded([this](auto&&, auto&&) { _OnMaximizeChange(); });
208213
}
209214

210215
// Method Description:

0 commit comments

Comments
 (0)