mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-30 02:37:26 +02:00
[ui] fallback for dispatching thumbnails in case cellID changed
This commit is contained in:
parent
7e371edc61
commit
0926b20d43
1 changed files with 8 additions and 0 deletions
|
@ -207,6 +207,14 @@ Panel {
|
||||||
let item = grid.itemAtIndex(callerID); // item is an ImageDelegate
|
let item = grid.itemAtIndex(callerID); // item is an ImageDelegate
|
||||||
if (item && item.source == imgSource) {
|
if (item && item.source == imgSource) {
|
||||||
item.updateThumbnail();
|
item.updateThumbnail();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// fallback in case the ImageDelegate cellID changed
|
||||||
|
for (let idx = 0; idx < grid.count; idx++) {
|
||||||
|
item = grid.itemAtIndex(idx);
|
||||||
|
if (item && item.source == imgSource) {
|
||||||
|
item.updateThumbnail();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue