diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-10 21:15:24 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-10 21:15:24 -0400 |
commit | b60999c39e11bf4d1e236f2b10a2f895b44d23fb (patch) | |
tree | 8ce8023277815a7d1f25dc7c48fa910c698d5b1b /widgets/account.go | |
parent | 62862d8a9e7f684bc3ff4e9ea115678ff44d8644 (diff) | |
download | aerc-b60999c39e11bf4d1e236f2b10a2f895b44d23fb.tar.gz |
Start building out command subsystem
Diffstat (limited to 'widgets/account.go')
-rw-r--r-- | widgets/account.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/widgets/account.go b/widgets/account.go index 3848bbf6..dc339cbb 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -75,7 +75,7 @@ func NewAccountView(conf *config.AccountConfig, for { msg := <-worker.Messages msg = worker.ProcessMessage(msg) - // TODO: dispatch to appropriate handlers + acct.onMessage(msg) } }() @@ -164,3 +164,11 @@ func (acct *AccountView) connected(msg types.WorkerMessage) { Color(tcell.ColorRed, tcell.ColorDefault) } } + +func (acct *AccountView) Directories() *DirectoryList { + return acct.dirlist +} + +func (acct *AccountView) onMessage(msg types.WorkerMessage) { + // TODO +} |