diff options
Diffstat (limited to 'app/account.go')
-rw-r--r-- | app/account.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/account.go b/app/account.go index 45321755..7a2cf582 100644 --- a/app/account.go +++ b/app/account.go @@ -194,6 +194,13 @@ func (acct *AccountView) Directories() DirectoryLister { return acct.dirlist } +func (acct *AccountView) SetDirectories(d DirectoryLister) { + if acct.grid != nil { + acct.grid.ReplaceChild(acct.dirlist, d) + } + acct.dirlist = d +} + func (acct *AccountView) Labels() []string { return acct.labels } |