-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix: Fixed an issue where the items count was sometimes incorrect in the Details Pane #18022
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
base: main
Are you sure you want to change the base?
Fix: Fixed an issue where the items count was sometimes incorrect in the Details Pane #18022
Conversation
|
@Anoop-2024si96509 the commit history seems to be a bit messed up. Can you try rebasing from |
@yaira2 okey. Yes I need few inputs from you. My plan is to create a new clean branch from main and cherry-pick my commit. So here should I create a new PR or Change the PR to point to the new branch ? |
|
I suggest keeping the PR and just changing the branch. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@Anoop-2024si96509 I updated the branch from |
f268e1e to
1199d53
Compare
Thanks @yaira2 All good, and my branch is now up to date., Kindly review my commit made to the file: |
| var items = await Folder.GetItemsAsync(); | ||
|
|
||
| // Get actual item count including hidden items based on user settings. | ||
| int itemCount = await Task.Run(() => CountItemsInFolder(Item.ItemPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is adding this method necessary? In theory, we should be able to use the same code that we do in the status bar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…bar for detail pane's items count also:fixes files-community#14433
|
Just so I am clear, the Details Pane will always show the total file and folder count, even with a filtered view right? Where as the status bar can show a count for the current view, be it filtered or not filtered? Hidden files exist, even if not viewed. And files not included in the filter still exist in the folder and it's folder size calculations? |
I am not sure I agree with that, as the Details pane should be a source of truth, and just because you are filtering the view, does not mean the folder's contents have changed. |
In my opinion, the Details Pane data should reflect what the user actually sees. This behavior is consistent with Microsoft Windows Explorer. |




Resolved / Related Issues
Steps used to test these changes
i)Show\Hide Hidden files & folders
ii)Show\Hide protected system files & folder
iii)Every possible combination of above 2 cases.