files-community / files-community/Files
Bug: Renaming file causes icon and info pane to not load correctly
- Dominant language
- C#
- Stars
- 45.4k
- Forks
- 2.9k
- PR merge metrics
- PR metrics pending
Description
### Description
With the none refreshing on rename. The info pane can not play the media in preview and if the extension is change the icon won't update.
### Steps To Reproduce
1. Get a media file
2. Open Info pane > Preview
3. Rename file
4. Select different file and back
5. See preview won't allow playing media
-
7. Change file extension to .invalid
8. See icon still using default media player icon
### Files Version
4.2.2
### Windows Version
10.26200.8875
### User ID
_No response_
### Log File
[debug.log](https://github.com/user-attachments/files/30764543/debug.log)
Contributor guide
Research direction
No source files or tests are named. Reproduce the issue on Windows 10 with a media file, then trace the file-rename handling for the info-pane preview and file icon refresh; done means playback still works after renaming and the icon reflects a changed extension, including .invalid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100