files-community / files-community/Files

Bug: Renaming file causes icon and info pane to not load correctly

Open
#18,802 0 comments 0 reactions 0 assignees View on GitHub
area - info pane
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.