diff --git a/src/cascadia/TerminalApp/TerminalPage.cpp b/src/cascadia/TerminalApp/TerminalPage.cpp index d92061e5e3b..a60fad3038c 100644 --- a/src/cascadia/TerminalApp/TerminalPage.cpp +++ b/src/cascadia/TerminalApp/TerminalPage.cpp @@ -2754,9 +2754,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); } } @@ -2805,9 +2805,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 4e3e2b5b16f..525ef1457fd 100644 --- a/src/cascadia/TerminalApp/TerminalPage.xaml +++ b/src/cascadia/TerminalApp/TerminalPage.xaml @@ -83,24 +83,18 @@ the MIT License. See LICENSE in the project root for license information. --> - - - - - - + +