-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Feature: Add support for choosing the default sorting and grouping options #10596
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
Conversation
Locking this PR as the feature request requirements haven't been finalized. Let's continue dicussing in the issue. |
Requirements have been sorted out |
Ok, if I understand correctly I need to remove the separate "override sort settings" option and use the existing Override layout option, and move the new settings to the Folders tab. Should I also move "Sort directories alongside files" which was already in Preferences? |
Correct
Let's leave as is for now |
src/Files.App/ViewModels/SettingsViewModels/PreferencesViewModel.cs
Outdated
Show resolved
Hide resolved
src/Files.App/ViewModels/SettingsViewModels/PreferencesViewModel.cs
Outdated
Show resolved
Hide resolved
src/Files.App/ViewModels/SettingsViewModels/PreferencesViewModel.cs
Outdated
Show resolved
Hide resolved
src/Files.App/ViewModels/SettingsViewModels/PreferencesViewModel.cs
Outdated
Show resolved
Hide resolved
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.
A bunch of small propositions to make the code cleaner.
Edit: I did not see the previous returns of Yair. I'll run another review after the modifications has been done.
The latest commit can be reverted if we prefer to leave the order as is. |
set => Set(value); | ||
} | ||
|
||
public SortDirection DefaultDirectorySortDirection |
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.
It was already used but was in LayoutSettingsService before, maybe I can just remove the parts I've added to expose the setting to the user?
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.
Aside of the comments still up, LGTM in general code-wise.
src/Files.App/ServicesImplementation/Settings/FoldersSettingsService.cs
Outdated
Show resolved
Hide resolved
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.
LGTM, aside of the small formatting I suggested above to remove unneeded spaces.
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Co-authored-by: Quaint Mako <110472580+QuaintMako@users.noreply.github.com>
Resolved / Related Issues
Items resolved / related issues by this PR.
Validation
How did you test these changes?