Skip to content

Commit

Permalink
Fix builtin themes not loading in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
F1bonacc1 committed Apr 6, 2024
1 parent 95fc418 commit 3097b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/themes.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/rs/zerolog/log"
"gopkg.in/yaml.v3"
"os"
"path/filepath"
"path"
"slices"
)

Expand All @@ -29,7 +29,7 @@ func NewThemes() *Themes {
files, err := themesFolder.ReadDir("themes")
if err == nil {
for _, file := range files {
fileName := filepath.Join("themes", file.Name())
fileName := path.Join("themes", file.Name())
b, err := themesFolder.ReadFile(fileName)
if err != nil {
log.Err(err).Msgf("Error reading files %s", fileName)
Expand Down

0 comments on commit 3097b66

Please sign in to comment.