diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-03 19:33:37 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-03 19:33:37 +1000 |
commit | 4ab1a1f72be0330242a6a432b4d197fac375d4a9 (patch) | |
tree | f477b3904fc140719b1d88cc3f7530079a870366 /pkg/config | |
parent | a9cd27707015a99df34aefd27471328ca23c8b3f (diff) | |
parent | d8aba3aeee2f7811c383305a5beb7253a748f02f (diff) |
Merge branch 'master' into hotfix/238-xdg-open
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/app_config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index 3e384d80f..3c272e520 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -192,6 +192,7 @@ func (c *AppConfig) SaveAppState() error { return ioutil.WriteFile(filepath, marshalledAppState, 0644) } +// LoadAppState loads recorded AppState from file func (c *AppConfig) LoadAppState() error { filepath, err := prepareConfigFile("state.yml") if err != nil { @@ -207,6 +208,7 @@ func (c *AppConfig) LoadAppState() error { return yaml.Unmarshal(appStateBytes, c.AppState) } +// GetDefaultConfig returns the application default configuration func GetDefaultConfig() []byte { return []byte( `gui: |