This commit is contained in:
Kovid Goyal
2023-05-04 10:26:18 +05:30
parent 3eb18a416a
commit ce70320a62
2 changed files with 6 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import (
"fmt"
"io"
"os"
"path/filepath"
"strings"
"time"
@@ -110,6 +111,9 @@ func parse_theme_metadata() error {
for _, path := range paths {
if path != "" {
metadata, _, err := themes.ParseThemeMetadata(path)
if metadata.Name == "" {
metadata.Name = themes.ThemeNameFromFileName(filepath.Base(path))
}
if err != nil {
return err
}