diff --git a/src/modules/keyboardmanager/ui/Dialog.cpp b/src/modules/keyboardmanager/ui/Dialog.cpp index ceb9412b10..0e8e6e0bf9 100644 --- a/src/modules/keyboardmanager/ui/Dialog.cpp +++ b/src/modules/keyboardmanager/ui/Dialog.cpp @@ -1,11 +1,11 @@ #include "pch.h" #include "Dialog.h" -IAsyncOperation Dialog::PartialRemappingConfirmationDialog(XamlRoot root) +IAsyncOperation Dialog::PartialRemappingConfirmationDialog(XamlRoot root, std::wstring dialogTitle) { ContentDialog confirmationDialog; confirmationDialog.XamlRoot(root); - confirmationDialog.Title(box_value(L"Some of the keys could not be remapped. Do you want to continue anyway?")); + confirmationDialog.Title(box_value(dialogTitle)); confirmationDialog.IsPrimaryButtonEnabled(true); confirmationDialog.DefaultButton(ContentDialogButton::Primary); confirmationDialog.PrimaryButtonText(winrt::hstring(L"Continue Anyway")); diff --git a/src/modules/keyboardmanager/ui/Dialog.h b/src/modules/keyboardmanager/ui/Dialog.h index ec4a6a560a..9e683c596e 100644 --- a/src/modules/keyboardmanager/ui/Dialog.h +++ b/src/modules/keyboardmanager/ui/Dialog.h @@ -37,5 +37,5 @@ namespace Dialog return isSuccess; } - IAsyncOperation PartialRemappingConfirmationDialog(winrt::Windows::UI::Xaml::XamlRoot root); + IAsyncOperation PartialRemappingConfirmationDialog(winrt::Windows::UI::Xaml::XamlRoot root, std::wstring dialogTitle); }; diff --git a/src/modules/keyboardmanager/ui/EditKeyboardWindow.cpp b/src/modules/keyboardmanager/ui/EditKeyboardWindow.cpp index 0af366a64b..ead11bec1e 100644 --- a/src/modules/keyboardmanager/ui/EditKeyboardWindow.cpp +++ b/src/modules/keyboardmanager/ui/EditKeyboardWindow.cpp @@ -91,7 +91,7 @@ static IAsyncAction OnClickAccept(KeyboardManagerState& keyboardManagerState, Xa }); if (isSuccess != KeyboardManagerHelper::ErrorType::NoError) { - if (!co_await Dialog::PartialRemappingConfirmationDialog(root)) + if (!co_await Dialog::PartialRemappingConfirmationDialog(root, L"Some of the keys could not be remapped. Do you want to continue anyway?")) { co_return; } diff --git a/src/modules/keyboardmanager/ui/EditShortcutsWindow.cpp b/src/modules/keyboardmanager/ui/EditShortcutsWindow.cpp index cbebe8555a..9987e427d1 100644 --- a/src/modules/keyboardmanager/ui/EditShortcutsWindow.cpp +++ b/src/modules/keyboardmanager/ui/EditShortcutsWindow.cpp @@ -37,7 +37,7 @@ static IAsyncAction OnClickAccept( }); if (isSuccess != KeyboardManagerHelper::ErrorType::NoError) { - if (!co_await Dialog::PartialRemappingConfirmationDialog(root)) + if (!co_await Dialog::PartialRemappingConfirmationDialog(root, L"Some of the shortcuts could not be remapped. Do you want to continue anyway?")) { co_return; }