Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Image Lab React]: Fixed errors in opening project #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chamodperera
Copy link
Contributor

Description

  • Firstly, there was some confusion as the buttons referred to opening and saving projects ( in .XML format ), not images. Therefore, I changed the labels to Open project and Save project to avoid confusion.
  • I restricted the open project button to only allow .XML files to be opened. This prevents users from opening other file types, like images.
  • I also handle some exceptions that may occur, such as when a user opens an invalid XML project or when the file is corrupted.
  • Fixes [Image Lab React]: Open and Save Functions are generating Error. #1

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Manually tested.

2024-03-29.10-05-32.mp4

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Image Lab React]: Open and Save Functions are generating Error.
2 participants