[ui] fallback for dispatching thumbnails in case cellID changed

This commit is contained in:
mugulmd 2023-01-17 02:42:35 -08:00
parent 7e371edc61
commit 0926b20d43

View file

@ -207,6 +207,14 @@ Panel {
let item = grid.itemAtIndex(callerID); // item is an ImageDelegate
if (item && item.source == imgSource) {
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();
}
}
}
}