From e4104a867401e383ef2b45f4c449b8b3fa25e69b Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Thu, 29 Aug 2019 15:30:35 -1000 Subject: Allow custom spinner via config file Allows to set `ui.spinner=` to a string which is then split by `ui.spinner-delimiter=` (Default: comma) instead of having a hard coded animation. This implementation doesn't use INIs capabilities to split strings as it trims whitespaces breaking the default animation. Signed-off-by: Paul Spooren --- widgets/msglist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/msglist.go') diff --git a/widgets/msglist.go b/widgets/msglist.go index df83dbd..a316cf5 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -59,7 +59,7 @@ func NewMessageList(conf *config.AercConfig, logger *log.Logger) *MessageList { ml := &MessageList{ conf: conf, logger: logger, - spinner: NewSpinner(), + spinner: NewSpinner(&conf.Ui), isInitalizing: true, } ml.spinner.OnInvalidate(func(_ ui.Drawable) { -- cgit 1.4.1-2-gfad0