diff options
author | Nick Flueckiger <nick.flueckiger@renuo.ch> | 2021-01-05 18:38:49 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-02-08 14:25:24 -0800 |
commit | 6f0f70bd924b444a5f755046c1da25c0f31e352e (patch) | |
tree | d9839a34800f0791ae42ac3bb783a3e50cad1839 /pkg/config | |
parent | 6df15ddf6e06429cddc5f006b8dabf06c6a8ac51 (diff) |
Adding setup and config
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/user_config.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index ffdd93a8d..9d77dbdee 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -4,6 +4,7 @@ type UserConfig struct { Gui GuiConfig `yaml:"gui"` Git GitConfig `yaml:"git"` Update UpdateConfig `yaml:"update"` + Refresher RefresherConfig `yaml:"refresher"` Reporting string `yaml:"reporting"` SplashUpdatesIndex int `yaml:"splashUpdatesIndex"` ConfirmOnQuit bool `yaml:"confirmOnQuit"` @@ -17,6 +18,11 @@ type UserConfig struct { NotARepository string `yaml:"notARepository"` } +type RefresherConfig struct { + RefreshInterval int `yaml:"refreshInterval"` + FetchInterval int `yaml:"fetchInterval"` +} + type GuiConfig struct { ScrollHeight int `yaml:"scrollHeight"` ScrollPastBottom bool `yaml:"scrollPastBottom"` @@ -306,6 +312,10 @@ func GetDefaultConfig() *UserConfig { DisableForcePushing: false, CommitPrefixes: map[string]CommitPrefixConfig(nil), }, + Refresher: RefresherConfig{ + RefreshInterval: 10, + FetchInterval: 60, + }, Update: UpdateConfig{ Method: "prompt", Days: 14, |