This commit is contained in:
Mike Griese
2022-04-27 10:37:34 -05:00
parent 0b5d636ec5
commit 75d30651a5
2 changed files with 1 additions and 3 deletions

View File

@@ -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 -

View File

@@ -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;