config: add support for "list" type

"list" is a list of strings, represented in the .ini as repeated entries
for a field, e.g.
url = myurl1
url = myurl2
Shown in the UI as multiple inputs with delete buttons.
This commit is contained in:
Harvey Tindall
2024-08-20 20:19:32 +01:00
parent b2771e6cc5
commit 6bad293f74
6 changed files with 169 additions and 40 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func (app *appContext) MustSetValue(section, key, val string) {
func (app *appContext) loadConfig() error {
var err error
app.config, err = ini.Load(app.configPath)
app.config, err = ini.ShadowLoad(app.configPath)
if err != nil {
return err
}