Fix nil dereference on rapidly cycling folders
This commit is contained in:
parent
24dfc47126
commit
9e3b602ce7
|
@ -65,7 +65,7 @@ func (dirlist *DirectoryList) Select(name string) {
|
||||||
switch msg.(type) {
|
switch msg.(type) {
|
||||||
case *types.Error:
|
case *types.Error:
|
||||||
dirlist.selecting = ""
|
dirlist.selecting = ""
|
||||||
default:
|
case *types.Done:
|
||||||
dirlist.selected = dirlist.selecting
|
dirlist.selected = dirlist.selecting
|
||||||
}
|
}
|
||||||
dirlist.Invalidate()
|
dirlist.Invalidate()
|
||||||
|
|
Loading…
Reference in New Issue