Skip to main content
HTD
Senior II
December 8, 2023
Question

Designer: When import fails unexpectedly - it leaves the project in invalid state.

  • December 8, 2023
  • 1 reply
  • 834 views

The problem appeared when I deleted a custom container that contained a specific font. I also deleted the typography. Then for a test purpose, I imported the custom container again. I got an error, that my font file is being open, so the import process cannot write it.

The import failed leaving some files imported, and some not imported. I had to manually delete imported files and restart TouchGFX to be able to import the custom container.

What IMO should happen - if the import fails, it should roll back the changes, or... maybe ignore the error and continue with the rest of the files. When unexpected error occurs - the best solution would be to display a dialog like this:

An error occurred while importing the custom container

Proceed with:

  1. Roll back the changes (remove imported files)
  2. Ignore the error and continue (some files may be missing)

 

 

1 reply

ST Employee
December 14, 2023

Hello @HTD ,

Sorry for the inconvenience, we will definitely consider this issue for improving.
Thanks for the report and suggesting.

Mohammad MORADIST Software Developer | TouchGFX