diff --git a/ui.go b/ui.go index de19fe4..f5b7b22 100644 --- a/ui.go +++ b/ui.go @@ -318,13 +318,13 @@ func (win *win) printDir(screen tcell.Screen, dir *dir, selections map[string]in return } - if dir.loading { - win.print(screen, 2, 0, tcell.StyleDefault.Reverse(true), "loading...") + if dir.noPerm { + win.print(screen, 2, 0, tcell.StyleDefault.Reverse(true), "permission denied") return } - if dir.noPerm { - win.print(screen, 2, 0, tcell.StyleDefault.Reverse(true), "permission denied") + if dir.loading && len(dir.files) == 0 { + win.print(screen, 2, 0, tcell.StyleDefault.Reverse(true), "loading...") return }