Skip to content

Commit

Permalink
Don't even try to MoveContent to the same window you started in (#15325)
Browse files Browse the repository at this point in the history
Don't go.
Tracked in #14957
  • Loading branch information
zadjii-msft authored May 12, 2023
1 parent 1bf2fcb commit 1324a01
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cascadia/TerminalApp/TerminalPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2090,6 +2090,13 @@ namespace winrt::TerminalApp::implementation
const auto windowId{ args.Window() };
if (!windowId.empty())
{
// if the windowId is the same as our name, do nothing
if (windowId == WindowProperties().WindowName() ||
windowId == winrt::to_hstring(WindowProperties().WindowId()))
{
return true;
}

if (const auto terminalTab{ _GetFocusedTabImpl() })
{
auto startupActions = terminalTab->BuildStartupActions(true);
Expand Down

0 comments on commit 1324a01

Please sign in to comment.