From 8cb4a9d751d1497e1059fedb03964bc9e56e5c06 Mon Sep 17 00:00:00 2001 From: Kevin Kuehler Date: Thu, 10 Oct 2019 15:27:07 -0700 Subject: 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 --- config/aerc.conf.in | 6 ++++++ config/config.go | 1 + 2 files changed, 7 insertions(+) (limited to 'config') diff --git a/config/aerc.conf.in b/config/aerc.conf.in index ec89ff7..362dd51 100644 --- a/config/aerc.conf.in +++ b/config/aerc.conf.in @@ -32,6 +32,12 @@ empty-message=(no messages) # Default: (no folders) empty-dirlist=(no folders) +# +# Enable threading in the ui +# +# Default: false +threading-enabled=false + # Enable mouse events in the ui, e.g. clicking and scrolling with the mousewheel # # Default: false diff --git a/config/config.go b/config/config.go index 133a7f4..4170b79 100644 --- a/config/config.go +++ b/config/config.go @@ -32,6 +32,7 @@ type UIConfig struct { EmptyMessage string `ini:"empty-message"` EmptyDirlist string `ini:"empty-dirlist"` MouseEnabled bool `ini:"mouse-enabled"` + ThreadingEnabled bool `ini:"threading-enabled"` NewMessageBell bool `ini:"new-message-bell"` Spinner string `ini:"spinner"` SpinnerDelimiter string `ini:"spinner-delimiter"` -- cgit v1.2.3