From 7ff8c707e904cf4cf9999ed4c5aa6371dbda244f Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 26 Sep 2024 17:31:43 -0700 Subject: [PATCH] fix(developer): warn before importing over touch layout Fixes: #12476 --- developer/src/tike/child/UfrmKeymanWizard.pas | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/developer/src/tike/child/UfrmKeymanWizard.pas b/developer/src/tike/child/UfrmKeymanWizard.pas index baa906e8369..59e0f8a3411 100644 --- a/developer/src/tike/child/UfrmKeymanWizard.pas +++ b/developer/src/tike/child/UfrmKeymanWizard.pas @@ -3263,6 +3263,14 @@ procedure TfrmKeymanWizard.cmdImportFromOnScreenClick(Sender: TObject); // I39 Exit; end; + if MessageDlg( + 'Importing the Desktop On Screen Keyboard will overwrite all changes in all '+ + 'layers in the touch layout. Continue and overwrite touch layout?', mtWarning, + mbOkCancel, 0) = mrCancel then + begin + Exit; + end; + if Self.Modified then // I4059 begin if not FKeymanDeveloperOptions.OSKAutoSaveBeforeImporting then