minor cleanup

This commit is contained in:
Carlos Zamora
2026-03-26 19:27:24 -07:00
parent 973bd41fd2
commit 98a4ccbd0e
2 changed files with 3 additions and 3 deletions

View File

@@ -1268,8 +1268,8 @@ namespace winrt::TerminalApp::implementation
{
// The toast Activated callback runs on a background thread.
// Marshal to the UI thread for tab focus and window summon.
page->Dispatcher().RunAsync(winrt::Windows::UI::Core::CoreDispatcherPriority::Normal, [weakPage{ page->get_weak() }, weakTab]() {
if (const auto p{ weakPage.get() })
page->Dispatcher().RunAsync(winrt::Windows::UI::Core::CoreDispatcherPriority::Normal, [weakThis, weakTab]() {
if (const auto p{ weakThis.get() })
{
if (const auto t{ weakTab.get() })
{

View File

@@ -1622,7 +1622,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
}
// Method Description:
// - Called for the Terminal's TitleChanged callback.This will re-raise
// - Called for the Terminal's TitleChanged callback. This will re-raise
// a new winrt TypedEvent that can be listened to.
// - The listeners to this event will re-query the control for the current
// value of Title().