Merge pull request #15060 from keymanapp/fix/developer/handle-load-errors-for-touch-layout-builder

fix(developer): handle exceptions loading .keyman-touch-layout files
This commit is contained in:
Marc Durdin 2025-10-31 06:30:42 +01:00 • committed by GitHub
commit 344fd4bd3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -355,8 +355,16 @@ begin
with TStringList.Create do
try
LoadFromFile(FBaseFileName, TEncoding.UTF8);
FNewLayoutJS := Text;
try
LoadFromFile(FBaseFileName, TEncoding.UTF8);
FNewLayoutJS := Text;
except
on E:Exception do
begin
ShowMessage(E.Message);
Exit(False);
end;
end;
finally
Free;
end;