show loading directories with previous file list

Related #414
This commit is contained in:
Gokcehan 2020-09-05 12:55:27 +03:00
parent ebf3bcc76b
commit 5e9580500c

8
ui.go
View File

@ -318,13 +318,13 @@ func (win *win) printDir(screen tcell.Screen, dir *dir, selections map[string]in
return return
} }
if dir.loading { if dir.noPerm {
win.print(screen, 2, 0, tcell.StyleDefault.Reverse(true), "loading...") win.print(screen, 2, 0, tcell.StyleDefault.Reverse(true), "permission denied")
return return
} }
if dir.noPerm { if dir.loading && len(dir.files) == 0 {
win.print(screen, 2, 0, tcell.StyleDefault.Reverse(true), "permission denied") win.print(screen, 2, 0, tcell.StyleDefault.Reverse(true), "loading...")
return return
} }