SUMMARY Thumbnails for recent projects are only generated once per session, as in, they do not properly update when the user saves changes for an already saved recent project. They will only update when the user initially saves the image or starts a new Krita session. This does not apply to the file picker thumbnails. It seems to only apply to the Welcome Screen thumbnails and File -> Open Recent thumbnails. STEPS TO REPRODUCE 1. Create a new image. 2. Make one stroke and save the image. 3. Observe thumbnail in File -> Open Recent. 4. Make another stroke and save. 5. Observe thumbnail in File -> Open Recent. OBSERVED RESULT The thumbnail in step 3 is still being used. EXPECTED RESULT There should be a new thumbnail from the modifications made in step 4, without having to restart Krita. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Debian sid KDE Plasma Version: 5.23.4 KDE Frameworks Version: 5.88.0 Qt Version: 5.12.12 (appimage)
Yeah, I think we never invalidate the cached thumbnail when updating the recent file list.
I'll take this now since I'm touching this area of code.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1307
Git commit d5417faf75a8a1166cbee76a8024817c9e7e5174 by Alvin Wong. Committed on 29/01/2022 at 15:00. Pushed by alvinwong into branch 'master'. Make recent file icons update on saving M +2 -0 libs/ui/KisPart.cpp M +24 -0 libs/ui/utils/KisRecentFileIconCache.cpp M +11 -0 libs/ui/utils/KisRecentFileIconCache.h https://invent.kde.org/graphics/krita/commit/d5417faf75a8a1166cbee76a8024817c9e7e5174