fix: change the name of the theme configuration file to 'themes'
This commit is contained in:
+1
-1
@@ -206,7 +206,7 @@ async fn start_ui(
|
|||||||
let theme_definitions = if let Some(ref theme_file) = theme_file_arg {
|
let theme_definitions = if let Some(ref theme_file) = theme_file_arg {
|
||||||
load_theme_config(theme_file.to_str().expect("Invalid theme file specified"))?
|
load_theme_config(theme_file.to_str().expect("Invalid theme file specified"))?
|
||||||
} else {
|
} else {
|
||||||
confy::load("managarr", "theme").unwrap_or_else(|_| vec![ThemeDefinition::default()])
|
confy::load("managarr", "themes").unwrap_or_else(|_| vec![ThemeDefinition::default()])
|
||||||
};
|
};
|
||||||
let theme = if !theme_name.is_empty() {
|
let theme = if !theme_name.is_empty() {
|
||||||
let theme_definition = theme_definitions.iter().find(|t| t.name == theme_name);
|
let theme_definition = theme_definitions.iter().find(|t| t.name == theme_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user