Skip to content

Commit 4211397

Browse files
committed
don't save config on each start
1 parent 313b460 commit 4211397

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config/settings.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ func InitConfig() {
138138
if section, err := cfg.GetSection("colors"); err == nil {
139139
section.MapTo(&Config.Colors)
140140
}
141-
newCfg := ini.Empty()
142-
if err = ini.ReflectFromWithMapper(newCfg, &Config, ini.TitleUnderscore); err == nil {
143-
//TODO: only save if changes
144-
err = newCfg.SaveTo(configFilePath)
145-
}
141+
//TODO: only save if changes
142+
//newCfg := ini.Empty()
143+
//if err = ini.ReflectFromWithMapper(newCfg, &Config, ini.TitleUnderscore); err == nil {
144+
//err = newCfg.SaveTo(configFilePath)
145+
//}
146146
} else {
147147
cfg = ini.Empty()
148148
cfg.NameMapper = ini.TitleUnderscore

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"gitlab.com/tslocum/cbind"
1818
)
1919

20-
var VERSION string = "v1.0.3"
20+
var VERSION string = "v1.0.4"
2121

2222
var sndTxt string = ""
2323
var currentReceiver messages.Chat = messages.Chat{}

0 commit comments

Comments
 (0)