Closed tnrdd closed 1 year ago
I am still able to reproduce the original issue. It happens also when not at the end of the media gallery, and only when the objects are not cached.
I thought the freezing was only because of the out of bound access error but besides that when switching on first load the old model remained a second displayed while the name of the new model was already showing. It now should show a spinner until the new model is loaded.
Looks good now!
Description
When switching between models in the media gallery sometimes
modelIndex
inGWCanvas
is set to be the same length of themediaGallery
array and it address to an index of an undefined element, causinggwContent.raw.get()
to error out and the media content carousel to be stuck on the same model before the click.This make sure
modelIndex
is not off by one and it always wrap around when it would be less than zero or equal the length of the array.Issue
fixes #57
Checklist:
develop
or appropriate feature branchdevelop
or appropriate feature branchAlert Reviewers
@codynhat @gravenp