slight change to make presets work in both linux and windows
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
|||||||
"io/fs"
|
"io/fs"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
@@ -95,7 +96,7 @@ func listEmbeddedPresets() ([]presetEntry, error) {
|
|||||||
displayName := strings.TrimSuffix(name, filepath.Ext(name))
|
displayName := strings.TrimSuffix(name, filepath.Ext(name))
|
||||||
presets = append(presets, presetEntry{
|
presets = append(presets, presetEntry{
|
||||||
Name: displayName,
|
Name: displayName,
|
||||||
Path: filepath.Join("Presets", name),
|
Path: path.Join("Presets", name),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
sort.Slice(presets, func(i, j int) bool {
|
sort.Slice(presets, func(i, j int) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user