Commit d07e56a
committed
[ImageGallery] Correctly set the selected index of the gallery model
The selected index was only being updated when the user clicked on an
image delegate in the gallery, but never when the `selectedViewId` was
changed from an external source, such as the Sequence Player or the 3D
Viewer.
`currentIndex` was correctly updated (meaning the navigation index of the
gallery was indeed correct, i.e. including the selected view) but
`selectedIndex` itself was never updated, so the highlight remained on the
previously selected image (even if it was out of the updated navigation
view).1 parent 5f89dd5 commit d07e56a
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
0 commit comments