diff options
Diffstat (limited to 'widgets/dirtree.go')
-rw-r--r-- | widgets/dirtree.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/dirtree.go b/widgets/dirtree.go index 24094e57..1130329a 100644 --- a/widgets/dirtree.go +++ b/widgets/dirtree.go @@ -32,6 +32,10 @@ func NewDirectoryTree(dirlist *DirectoryList, pathSeparator string) DirectoryLis return dt } +func (dt *DirectoryTree) ClearList() { + dt.list = make([]*types.Thread, 0) +} + func (dt *DirectoryTree) UpdateList(done func([]string)) { dt.DirectoryList.UpdateList(func(dirs []string) { if done != nil { |