When parsing theme metadata ignore the name if it is the placeholder value from the template

This commit is contained in:
Kovid Goyal 2023-05-03 21:55:33 +05:30
parent 87943079fb
commit ea5634b3fd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -507,7 +507,9 @@ func parse_theme_metadata(path string) (*ThemeMetadata, map[string]string, error
val = strings.TrimSpace(val)
switch key {
case "name":
ans.Name = val
if val != "The name of the theme (if not present, derived from filename)" {
ans.Name = val
}
case "author":
ans.Author = val
case "upstream":