Files
Files copied to clipboard
Bug: Turning off grouping can show an empty view
Explain the bug
When grouping (implemented in #4826) is turned on and the user clicks on a header to show the group names only and then turns off grouping the view becomes empty.
To reproduce
- Go to any folder
- Click on Arrangement options
- Select any grouping type (eg. Name)
- Click on a group header
- Click on Arrangement options again
- Select None in the Group by options
- See the error (empty view)
Expected behavior
The original folder view should be restored when Group by > None is being selected.
Screenshots
System Information
- OS Version: Windows 10 20H2 19042.985
- App version: 2.3.11.0
Additional comment
This is not an issue when the folder contents were visible, not just the group headers.
By the way sorry for my misunderstanding, but how did you find this feature? I have no idea running the version 1.5.0. I even look up the Release notes and couldn't find any mentions about it.
By the way sorry for my misunderstanding, but how did you find this feature? I have no idea running the version 1.5.0. I even look up the Release notes and couldn't find any mentions about it.
@LukoFoks This feature has yet to be released, and can only be found by building the source code from main
.
Looks like it is necessary to call ToggleActiveView (to turn off zoom mode) when IsSourceGrouped is set to false. Either in the DetailsLayoutBrowser config or somewhere here https://github.com/files-community/Files/blob/main/Files/ViewModels/ItemViewModel.cs#L657. (Sorry, i'm new to this project)
@nvi9 is this still an issue in v2.1.13?
@nvi9 is this still an issue in v2.1.13?
@yaichenbaum yes it is
Is this still an issue in 2.3.11.0 or above?
Is this still an issue in 2.3.11.0 or above?
@Josh-65 with version 2.3.11.0, yes
Edit: just checked version 2.3.28.0 and the issue is still present there.
@nvi9 I don't whink that's a bug: that view shows you the existing groups and how many items they contain. If you turn off grouping there are no more groups so that page is empty.
Anyway, if you want to remove that empty page, I think we might add an entry saying: All x items
, or we could simply navigate one page back
It should default to showing the items as normal with grouping none
I should have fixed this. If you can confirm, I'll proceed with code cleanup