Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix Cancel Create Key Map in MCReader #481

Merged
merged 1 commit into from
May 13, 2024

Conversation

alecor450
Copy link
Contributor

In Read Tag, clicking on Cancel after Start Mapping and read tag can take several seconds before the App is available to start another mapping. This is due to the high number of keys being tried in MCReader.

This fix propagates the Cancel request to MCReader and exit the for loops in buildNextKeyMapPart().

Step to reproduce:

  • Navigate to the Read Tag Screen
  • select all key files
  • Click Start Mapping and read tag
  • Click Cancel

Old behavior:

Cancel can take several seconds to complete

New behavior:

Cancel resolves immediately

Screenshot_20240512_231958

@alecor450 alecor450 marked this pull request as ready for review May 13, 2024 03:36
@ikarus23
Copy link
Owner

Now this is what I call a good contribution/pull request! Good improvement, clean code edit and well documented! Thank you!

@ikarus23 ikarus23 merged commit f33c69f into ikarus23:master May 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants