Skip to content

Fix: Fixed an issue where thumbnails failed to refresh after modifying the file#18466

Merged
yair100 merged 3 commits into
files-community:mainfrom
workbysaran:sg/fix-thumbnail-retry-timer-fallback
May 17, 2026
Merged

Fix: Fixed an issue where thumbnails failed to refresh after modifying the file#18466
yair100 merged 3 commits into
files-community:mainfrom
workbysaran:sg/fix-thumbnail-retry-timer-fallback

Conversation

@workbysaran
Copy link
Copy Markdown
Contributor

Fixed an issue where file thumbnails failed to appear after saving a file using Chrome "Save as PDF", Adobe PDF printer, or Microsoft PDF printer.

This fix adds a 2-second timer-based self-retry directly in LoadThumbnailAsync as a fallback for when no FILE_ACTION_MODIFIED event follows a thumbnail failure. Diagnostic logging also added to investigate the issue.

Closes #18352

Steps used to test these changes

  1. Navigate to a folder in Files
  2. Print to PDF from Chrome using "Save as PDF" into that folder and verify thumbnail appears within ~2 seconds
  3. Repeat using Adobe PDF printer or Microsoft PDF printer and verify whether thumbnail appears

…file such as using Chrome "Save as PDF", Adobe PDF printer, or Microsoft PDF printer.
Comment thread src/Files.App/ViewModels/ShellViewModel.cs
@yair100 yair100 changed the title Fixed an issue where file thumbnails failed to appear after saving a … Fix: Fixed an issue where thumbnails failed to refresh after modifying the filen May 17, 2026
@yair100 yair100 changed the title Fix: Fixed an issue where thumbnails failed to refresh after modifying the filen Fix: Fixed an issue where thumbnails failed to refresh after modifying the file May 17, 2026
Copy link
Copy Markdown
Member

@yair100 yair100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yair100 yair100 added the ready to merge Pull requests that are approved and ready to merge label May 17, 2026
@yair100 yair100 merged commit 4b036f3 into files-community:main May 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: PDF thumbnail not displaying until refresh

3 participants