fix: theme not loading without config (#1631)
This commit is contained in:
parent
68c5f1e051
commit
4e9ad2e694
1 changed files with 4 additions and 1 deletions
|
|
@ -270,7 +270,10 @@ mod not_wasm {
|
|||
if let Some(extension) = entry.path().extension() {
|
||||
if extension == "yaml" || extension == "yml" {
|
||||
if let Ok(themes) = ThemesFromYaml::from_path(&entry.path()) {
|
||||
config.themes = config.themes.map(|t| t.merge(themes.into()));
|
||||
match config.themes {
|
||||
Some(t) => config.themes = Some(t.merge(themes.into())),
|
||||
None => config.themes = Some(themes.into()),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue