Repository: microsoft/terminal (language: cpp)

Issue:
DxD: Terminal tells you that it can be set as default even when it was DxD'd
### Windows Terminal version

1.15

### Windows build number

25000

### Other Software

_No response_

### Steps to reproduce

Launch a command-line application!

### Expected Behavior

I bet we can suppress the pop-up for *any* incoming handoff. Just, if the user receives a handoff immediately hard-dismiss the alert.

### Actual Behavior

<img width="527" alt="image" src="https://user-images.githubusercontent.com/189190/174173328-fb73b89f-f5ab-4e4d-b67e-6478c1af4fec.png">



Discussion / hints:

Fix patch:
diff --git a/src/cascadia/TerminalApp/TerminalPage.cpp b/src/cascadia/TerminalApp/TerminalPage.cpp
index ea1bb14a8fb..197cbce47c6 100644
--- a/src/cascadia/TerminalApp/TerminalPage.cpp
+++ b/src/cascadia/TerminalApp/TerminalPage.cpp
@@ -3274,6 +3274,9 @@ namespace winrt::TerminalApp::implementation
 
             // Request a summon of this window to the foreground
             _SummonWindowRequestedHandlers(*this, nullptr);
+
+            const IInspectable unused{ nullptr };
+            _SetAsDefaultDismissHandler(unused, unused);
             return S_OK;
         }
         CATCH_RETURN()


Test patch: