Sort out dirstore once and for all

This commit is contained in:
Drew DeVault 2019-07-04 12:31:27 -04:00
commit f7387f8c60
3 changed files with 2 additions and 16 deletions
widgets

View file

@ -48,6 +48,7 @@ func (dirlist *DirectoryList) List() []string {
}
func (dirlist *DirectoryList) UpdateList(done func(dirs []string)) {
// TODO: move this logic into dirstore
var dirs []string
dirlist.worker.PostAction(
&types.ListDirectories{}, func(msg types.WorkerMessage) {