diff --git a/src/cascadia/TerminalApp/TerminalPage.cpp b/src/cascadia/TerminalApp/TerminalPage.cpp index a956e9f85757..6d55956f7a6e 100644 --- a/src/cascadia/TerminalApp/TerminalPage.cpp +++ b/src/cascadia/TerminalApp/TerminalPage.cpp @@ -2957,9 +2957,9 @@ namespace winrt::TerminalApp::implementation // Service" is disabled. void TerminalPage::ShowKeyboardServiceWarning() { - if (auto presenter{ _dialogPresenter.get() }) + if (auto keyboardWarningInfoBar = FindName(L"KeyboardWarningInfoBar").try_as()) { - presenter.ShowDialog(FindName(L"KeyboardServiceDisabledDialog").try_as()); + keyboardWarningInfoBar.IsOpen(true); } } @@ -3008,9 +3008,9 @@ namespace winrt::TerminalApp::implementation // Method Description: // - Return the fully-formed warning message for the - // "KeyboardServiceDisabled" dialog. This dialog is used to warn the user + // "KeyboardServiceDisabled" InfoBar. This InfoBar is used to warn the user // if the keyboard service is disabled, and uses the OS localization for - // the service's actual name. It's bound to the dialog in XAML. + // the service's actual name. It's bound to the bar in XAML. // Return Value: // - The warning message, including the OS-localized service name. winrt::hstring TerminalPage::KeyboardServiceDisabledText() diff --git a/src/cascadia/TerminalApp/TerminalPage.xaml b/src/cascadia/TerminalApp/TerminalPage.xaml index b3d239493611..2484ee03a2cb 100644 --- a/src/cascadia/TerminalApp/TerminalPage.xaml +++ b/src/cascadia/TerminalApp/TerminalPage.xaml @@ -91,24 +91,18 @@ the MIT License. See LICENSE in the project root for license information. --> - - - - - - + +