From b60999c39e11bf4d1e236f2b10a2f895b44d23fb Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 10 Mar 2019 21:15:24 -0400 Subject: Start building out command subsystem --- widgets/account.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'widgets/account.go') diff --git a/widgets/account.go b/widgets/account.go index 3848bbf..dc339cb 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 +} -- cgit 1.4.1-2-gfad0