Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"log"
"os"
"sort"
"strings"

"github.com/go-ini/ini"
Expand All @@ -20,7 +21,7 @@ func EditConfig(args []string) {
case "extensions", "custom_apps":
arrayType(featureSection, field, value)
case "spotify_launch_flags":
continue
// not editable via config command
case "prefs_path", "spotify_path", "current_theme", "color_scheme":
stringType(settingSection, field, value)

Expand Down Expand Up @@ -178,6 +179,7 @@ func arrayType(section *ini.Section, field, value string) {
for k := range allExts {
newList = append(newList, k)
}
sort.Strings(newList)

key.SetValue(strings.Join(newList, "|"))
changeSuccess(field, strings.Join(newList, "|"))
Expand Down