Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive set as Hidden + System item? #61

Open
DavidBevi opened this issue Feb 13, 2024 · 6 comments
Open

Drive set as Hidden + System item? #61

DavidBevi opened this issue Feb 13, 2024 · 6 comments

Comments

@DavidBevi
Copy link

DavidBevi commented Feb 13, 2024

Issue: my D: drive (internal) is not shown unless I enable both "Show Hidden Items" and "Show System Items".
Expected behavior: each drive/partition should be shown, like C: does (am I missing an option to do it already?)

Workaround: D: is always accessible by typing "D:" into the address bar, even when the drive is hidden.
EF_hidden_D_drive

@DavidBevi
Copy link
Author

Also, what is the "Total" in the bottom bar counting?

@omeryanar
Copy link
Owner

This is odd. Drives are initialized with FromDriveInfo method (Model/FileModel.cs) and there is no code in this method that sets IsHidden or IsSystem fields. The only thing I can think of is that the drive was mounted while FileExplorer was already running. Is that the case? In addtion, do you have a chance to debug and show me how these fields are set? You can set a breakpoint at GetDrives method inside Helpers/FileSystemHelper.cs and follow from there.

@omeryanar
Copy link
Owner

Also, what is the "Total" in the bottom bar counting?

It shows how many folders or files are inside the current folder. This can be confusing in the "Content View" because if you expand a folder, its subfolders and files are also included in the count.

@DavidBevi
Copy link
Author

DavidBevi commented Feb 25, 2024

[...] the drive was mounted while FileExplorer was already running.

PC mounts it while booting, does FE load before that? I'll try disabling FE's auto load + load it later to rule out that option and see if anything changes.

[...] do you have a chance to debug and show me how these fields are set?

Maybe, but I don't know. I just started learning C. I'll try to do it tomorrow, feel free to help me if you want quick answers, but I want to learn it anyway so you'll get it eventually 😉

@omeryanar
Copy link
Owner

omeryanar commented Mar 5, 2024

PC mounts it while booting, does FE load before that? I'll try disabling FE's auto load + load it later to rule out that option and see if anything changes.

No, normally FileExplorer runs after booting. However, if the problem goes away when you exit and restart FileExplorer (from the system tray icon), it must be related to an issue with booting.

Maybe, but I don't know. I just started learning C. I'll try to do it tomorrow, feel free to help me if you want quick answers, but I want to learn it anyway so you'll get it eventually 😉

You can use dnSpy: https://github.com/dnSpy/dnSpy
But it may seem complicated if you've never used it before

@DavidBevi
Copy link
Author

  1. The problem persists after I exit and restart FileExplorer from sys tray.

  2. Thanks for the tip. Yes, debugging seems daunting, that's why I procrastinated. I'm checking out dnSpy rn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants