last nits, let's do this

This commit is contained in:
Mike Griese
2023-03-17 08:42:41 -05:00
parent 0808f94cd0
commit 5b3dc083e0
2 changed files with 5 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ namespace winrt::TerminalApp::implementation
_mruTabs{ winrt::single_threaded_observable_vector<TerminalApp::TabBase>() },
_startupActions{ winrt::single_threaded_vector<ActionAndArgs>() },
_hostingHwnd{},
_WindowProperties{ properties }
_WindowProperties{ std::move(properties) }
{
InitializeComponent();

View File

@@ -983,9 +983,11 @@ void AppHost::_BecomeMonarch(const winrt::Windows::Foundation::IInspectable& /*s
}
_WindowCreatedToken = _windowManager.WindowCreated([this](auto&&, auto&&) {
if (_getWindowLayoutThrottler) {
if (_getWindowLayoutThrottler)
{
_getWindowLayoutThrottler.value()();
} });
}
});
_WindowClosedToken = _windowManager.WindowClosed([this](auto&&, auto&&) {
if (_getWindowLayoutThrottler)