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 exception on resource middle click in NEIE #142

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

exyi
Copy link

@exyi exyi commented Jun 3, 2024

In the Never Enough Items, middle click on a resource. This will navigate to the clicked resource, but also crashed the current Build process, because of modification of the iterated list.

Middle click on this: image

... and error shows up:

image

Note that the middle click still works, it just an annoyance.

Solution is clone the List when replacing it's contents. Since its listy features are no longer required, I switched it to use an array instead.

@exyi
Copy link
Author

exyi commented Jun 3, 2024

Resolves #137, I guess

DaleStan
DaleStan previously approved these changes Jun 4, 2024
Copy link
Collaborator

@DaleStan DaleStan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, except for the missing entry in changelog.txt.

@DaleStan DaleStan linked an issue Jun 4, 2024 that may be closed by this pull request
@exyi exyi force-pushed the fix-NEI-midbtn-crash branch 2 times, most recently from b73020f to 3346222 Compare June 4, 2024 09:48
@exyi
Copy link
Author

exyi commented Jun 4, 2024

@DaleStan Thanks, I added the changelog.txt entry

veger
veger previously approved these changes Jun 4, 2024
exyi added 2 commits June 5, 2024 14:24
In the Never Enough Items, middle click on a resource. This
will navigate to the clicked resource, but also crashed the current Build process, because of modification of the
iterated list.
@shpaass shpaass merged commit 8f35e4c into shpaass:master Jun 5, 2024
1 check passed
@exyi exyi deleted the fix-NEI-midbtn-crash branch June 8, 2024 19:54
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.

NEIE: pressing middle button throws an exception
4 participants