initialize hiddenfiles for loading directories

Related #478
This commit is contained in:
Gokcehan committed 2020-10-06 22:24:55 +03:00
1 parent 4c89535e18
commit 6a286673ce
1 file changed
+1 -1
+1 -1
View File
@@ -289,7 +289,7 @@ type nav struct {
func (nav *nav) loadDir(path string) *dir { func (nav *nav) loadDir(path string) *dir {
d, ok := nav.dirCache[path] d, ok := nav.dirCache[path]
if !ok { if !ok {
d := &dir{loading: true, loadTime: time.Now(), path: path, sortType: gOpts.sortType} d := &dir{loading: true, loadTime: time.Now(), path: path, sortType: gOpts.sortType, hiddenfiles: gOpts.hiddenfiles}
nav.dirCache[path] = d nav.dirCache[path] = d
go func() { go func() {
d := newDir(path) d := newDir(path)