@@ -283,8 +283,6 @@ namespace winrt::TerminalApp::implementation
283283 _defaultPointerCursor = CoreWindow::GetForCurrentThread ().PointerCursor ();
284284 }
285285 CATCH_LOG ();
286-
287- ShowSetAsDefaultInfoBar ();
288286 }
289287
290288 Windows::UI::Xaml::Automation::Peers::AutomationPeer TerminalPage::OnCreateAutomationPeer ()
@@ -3868,9 +3866,6 @@ namespace winrt::TerminalApp::implementation
38683866 // Request a summon of this window to the foreground
38693867 _SummonWindowRequestedHandlers (*this , nullptr );
38703868
3871- const IInspectable unused{ nullptr };
3872- _SetAsDefaultDismissHandler (unused, unused);
3873-
38743869 // TEMPORARY SOLUTION
38753870 // If the connection has requested for the window to be maximized,
38763871 // manually maximize it here. Ideally, we should be _initializing_
@@ -4052,35 +4047,6 @@ namespace winrt::TerminalApp::implementation
40524047 }
40534048 }
40544049
4055- // Method Description:
4056- // - Displays a info popup guiding the user into setting their default terminal.
4057- void TerminalPage::ShowSetAsDefaultInfoBar () const
4058- {
4059- if (::winrt::Windows::UI::Xaml::Application::Current ().try_as <::winrt::TerminalApp::App>() == nullptr )
4060- {
4061- // Just ignore this in the tests (where the Application::Current()
4062- // is not a TerminalApp::App)
4063- return ;
4064- }
4065- if (!CascadiaSettings::IsDefaultTerminalAvailable () || _IsMessageDismissed (InfoBarMessage::SetAsDefault))
4066- {
4067- return ;
4068- }
4069-
4070- // If the user has already configured any terminal for hand-off we
4071- // shouldn't inform them again about the possibility to do so.
4072- if (CascadiaSettings::IsDefaultTerminalSet ())
4073- {
4074- _DismissMessage (InfoBarMessage::SetAsDefault);
4075- return ;
4076- }
4077-
4078- if (const auto infoBar = FindName (L" SetAsDefaultInfoBar" ).try_as <MUX::Controls::InfoBar>())
4079- {
4080- infoBar.IsOpen (true );
4081- }
4082- }
4083-
40844050 // Function Description:
40854051 // - Helper function to get the OS-localized name for the "Touch Keyboard
40864052 // and Handwriting Panel Service". If we can't open up the service for any
@@ -4542,40 +4508,6 @@ namespace winrt::TerminalApp::implementation
45424508 }
45434509 }
45444510
4545- // Method Description:
4546- // - Persists the user's choice not to show the information bar warning about "Windows Terminal can be set as your default terminal application"
4547- // Then hides this information buffer.
4548- // Arguments:
4549- // - <none>
4550- // Return Value:
4551- // - <none>
4552- void TerminalPage::_SetAsDefaultDismissHandler (const IInspectable& /* sender*/ , const IInspectable& /* args*/ )
4553- {
4554- _DismissMessage (InfoBarMessage::SetAsDefault);
4555- if (const auto infoBar = FindName (L" SetAsDefaultInfoBar" ).try_as <MUX::Controls::InfoBar>())
4556- {
4557- infoBar.IsOpen (false );
4558- }
4559-
4560- TraceLoggingWrite (g_hTerminalAppProvider, " SetAsDefaultTipDismissed" , TraceLoggingKeyword (MICROSOFT_KEYWORD_MEASURES), TelemetryPrivacyDataTag (PDT_ProductAndServiceUsage));
4561-
4562- _FocusCurrentTab (true );
4563- }
4564-
4565- // Method Description:
4566- // - Dismisses the Default Terminal tip and opens the settings.
4567- void TerminalPage::_SetAsDefaultOpenSettingsHandler (const IInspectable& /* sender*/ , const IInspectable& /* args*/ )
4568- {
4569- if (const auto infoBar = FindName (L" SetAsDefaultInfoBar" ).try_as <MUX::Controls::InfoBar>())
4570- {
4571- infoBar.IsOpen (false );
4572- }
4573-
4574- TraceLoggingWrite (g_hTerminalAppProvider, " SetAsDefaultTipInteracted" , TraceLoggingKeyword (MICROSOFT_KEYWORD_MEASURES), TelemetryPrivacyDataTag (PDT_ProductAndServiceUsage));
4575-
4576- OpenSettingsUI ();
4577- }
4578-
45794511 // Method Description:
45804512 // - Checks whether information bar message was dismissed earlier (in the application state)
45814513 // Arguments:
0 commit comments