Skip to content

Commit

Permalink
Merge pull request #12478 from keymanapp/fix/developer/12476-warn-bef…
Browse files Browse the repository at this point in the history
…ore-importing-over-touch-layout

fix(developer): warn before importing over touch layout
  • Loading branch information
mcdurdin authored Sep 28, 2024
2 parents 2d21b21 + 7ff8c70 commit da8bad7
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 da8bad7

Please sign in to comment.