Skip to content

Commit

Permalink
fix(developer): warn before importing over touch layout
Browse files Browse the repository at this point in the history
Fixes: #12476
  • Loading branch information
mcdurdin committed Sep 27, 2024
1 parent 352000d commit 7ff8c70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions developer/src/tike/child/UfrmKeymanWizard.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ff8c70

Please sign in to comment.