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/dirlist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/dirlist.go') diff --git a/widgets/dirlist.go b/widgets/dirlist.go index 6214c8e..33119dd 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -33,7 +33,7 @@ func NewDirectoryList(acctConf *config.AccountConfig, uiConf *config.UIConfig, acctConf: acctConf, uiConf: uiConf, logger: logger, - spinner: NewSpinner(), + spinner: NewSpinner(uiConf), store: lib.NewDirStore(), worker: worker, } -- cgit v1.2.3