diff options
author | Kevin Kuehler <keur@xcf.berkeley.edu> | 2019-10-10 15:27:07 -0700 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-10-12 20:56:39 -0400 |
commit | 8cb4a9d751d1497e1059fedb03964bc9e56e5c06 (patch) | |
tree | a0d9a94e170f3d0fc0ed949460bdbb94c65ece06 /widgets | |
parent | f1b365dfc30b7253f3baea270ebcc8d1fb754db9 (diff) |
Start adding thread support
* Add threading-enabled config option
* Add DirectoryThreaded and FetchDirectoryThreaded types to control path
* Add generic thread type for all backends to use
Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/account.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go index 4e8dd17..ebc321d 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -220,6 +220,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { } else { store = lib.NewMessageStore(acct.worker, msg.Info, acct.getSortCriteria(), + acct.conf.Ui.ThreadingEnabled, func(msg *models.MessageInfo) { acct.conf.Triggers.ExecNewEmail(acct.acct, acct.conf, msg) @@ -238,6 +239,10 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { if store, ok := acct.dirlist.SelectedMsgStore(); ok { store.Update(msg) } + case *types.DirectoryThreaded: + if store, ok := acct.dirlist.SelectedMsgStore(); ok { + store.Update(msg) + } case *types.FullMessage: if store, ok := acct.dirlist.SelectedMsgStore(); ok { store.Update(msg) |