files-community / files-community/Files
Bug: Properties window opens behind the main window when no item is selected
- Dominant language
- C#
- Stars
- 45.4k
- Forks
- 2.9k
- PR merge metrics
- PR metrics pending
Description
### Description
In v4.2.31, when no item is selected and I open Properties, the Properties window opens behind the main Files window and cannot be brought to the front. It remains stuck behind the main window.
This happens both when using the Properties button in the toolbar and when right-clicking and selecting Properties from the context menu.
If I select a folder first and then open Properties, the Properties window opens normally in front of the main Files window.
I also tested this with the Calculate folder sizes option turned off, as suggested, but the issue still occurs.
### Steps To Reproduce
1. Open Files Preview v4.2.31.
2. Make sure no file or folder is selected.
3. Click the Properties button in the toolbar, or right-click and select Properties from the context menu.
4. Observe that the Properties window opens behind the main Files window.
5. Try to bring the Properties window to the front, it remains behind the main window.
6. Close the Properties window.
7. Select a folder and open Properties again.
8. Observe that the Properties window now opens normally in front of the main Files window.
### Files Version
4.2.31.0
### Windows Version
10.0.26200.9278
### User ID
93e8f5c2-2b0a-4052-a388-630d2c259e49
### Log File
[debug.log](https://github.com/user-attachments/files/31959890/debug.log)
Contributor guide
Research direction
Start by tracing the Properties action from both the toolbar button and the context menu when no item is selected, then compare it with the selected-folder path. Reproduce the issue on Windows with Files v4.2.31 and use the linked debug.log for clues. Done means Properties opens in front of the main Files window in both cases while selected-folder behavior remains unchanged.
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
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100