feat: add ability to select file modified time format (#1536)

This commit is contained in:
lilihx
2021-09-11 20:12:51 +08:00
committed by GitHub
parent 0358e42d2c
commit 0426629a59
6 changed files with 17 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ type UserDefaults struct {
Perm users.Permissions `json:"perm"`
Commands []string `json:"commands"`
HideDotfiles bool `json:"hideDotfiles"`
DateFormat bool `json:"dateFormat"`
}
// Apply applies the default options to a user.
@@ -28,4 +29,5 @@ func (d *UserDefaults) Apply(u *users.User) {
u.Sorting = d.Sorting
u.Commands = d.Commands
u.HideDotfiles = d.HideDotfiles
u.DateFormat = d.DateFormat
}