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 <profile>` and watched it join/summon instead of minimize the active WT.

(cherry picked from commit 0f42ee189d)
This commit is contained in:
Michael Niksa 2021-06-10 10:22:22 -07:00 committed by Dustin Howett
parent 6c60f2be82
commit 8c5f676533
No known key found for this signature in database
GPG key ID: 0719BB71B334EE77

View file

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