From 0f42ee189d23307cc09a046fea57319c09090837 Mon Sep 17 00:00:00 2001 From: Michael Niksa Date: Thu, 10 Jun 2021 10:22:22 -0700 Subject: [PATCH] Summon, not toggle visibility, window on command line dispatch (#10396) Summon, not toggle visibility, window on command line dispatch ## PR Checklist * [x] Closes #10292 * [x] I work here * [x] Manual test ## Detailed Description of the Pull Request / Additional comments - This is the same as #10389, just a different route. I didn't realize it at the time. ## Validation Steps Performed - Opened a window. Dispatched the `wt -w 0 - p ` and watched it join/summon instead of minimize the active WT. --- src/cascadia/WindowsTerminal/AppHost.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cascadia/WindowsTerminal/AppHost.cpp b/src/cascadia/WindowsTerminal/AppHost.cpp index 49f51f031..753166bf1 100644 --- a/src/cascadia/WindowsTerminal/AppHost.cpp +++ b/src/cascadia/WindowsTerminal/AppHost.cpp @@ -594,6 +594,7 @@ void AppHost::_DispatchCommandline(winrt::Windows::Foundation::IInspectable send summonArgs.MoveToCurrentDesktop(false); summonArgs.DropdownDuration(0); summonArgs.ToMonitor(Remoting::MonitorBehavior::InPlace); + summonArgs.ToggleVisibility(false); // Do not toggle, just make visible. // Summon the window whenever we dispatch a commandline to it. This will // make it obvious when a new tab/pane is created in a window. _HandleSummon(sender, summonArgs);