Skip to content

Commit

Permalink
fixes #9053
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Apr 27, 2022
1 parent 0b5d636 commit 75d3065
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/cascadia/TerminalApp/TerminalPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,6 @@ namespace winrt::TerminalApp::implementation
// after the frame is displayed before the XAML content first draws,
// so that didn't actually resolve any issues.

// Capture calling context.
winrt::apartment_context ui_thread;
auto weak{ get_weak() };

// Switch to the BG thread -
Expand Down
2 changes: 1 addition & 1 deletion src/cascadia/WindowsTerminal/AppHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ void AppHost::_AppInitializedHandler(const winrt::Windows::Foundation::IInspecta
LaunchMode launchMode{};
_initialResizeAndRepositionWindow(_window->GetHandle(), _proposedRect, launchMode);

int nCmdShow = SW_SHOW;
int nCmdShow = SW_SHOWDEFAULT;
if (WI_IsFlagSet(launchMode, LaunchMode::MaximizedMode))
{
nCmdShow = SW_MAXIMIZE;
Expand Down

1 comment on commit 75d3065

@github-actions

This comment was marked as duplicate.

Please sign in to comment.