slight change to make presets work in both linux and windows

This commit is contained in:
grimsace
2026-03-11 15:00:29 -05:00
parent 6858634807
commit c0382d6657
+2 -1
View File
@@ -17,6 +17,7 @@ import (
"io/fs"
"log"
"os"
"path"
"path/filepath"
"sort"
"strconv"
@@ -95,7 +96,7 @@ func listEmbeddedPresets() ([]presetEntry, error) {
displayName := strings.TrimSuffix(name, filepath.Ext(name))
presets = append(presets, presetEntry{
Name: displayName,
Path: filepath.Join("Presets", name),
Path: path.Join("Presets", name),
})
}
sort.Slice(presets, func(i, j int) bool {