mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 23:21:08 +03:00
schemes: prefer name from metadata when loading toml
refs: https://github.com/catppuccin/wezterm/issues/6
This commit is contained in:
parent
73993a60b4
commit
bbd2983bbc
@ -1056,13 +1056,16 @@ impl Config {
|
||||
let path = entry.path();
|
||||
match load_scheme(&path) {
|
||||
Ok(scheme) => {
|
||||
let name = scheme
|
||||
.metadata
|
||||
.name
|
||||
.unwrap_or_else(|| scheme_name.to_string());
|
||||
log::trace!(
|
||||
"Loaded color scheme `{}` from {}",
|
||||
scheme_name,
|
||||
name,
|
||||
path.display()
|
||||
);
|
||||
self.color_schemes
|
||||
.insert(scheme_name.to_string(), scheme.colors);
|
||||
self.color_schemes.insert(name, scheme.colors);
|
||||
}
|
||||
Err(err) => {
|
||||
log::error!(
|
||||
|
Loading…
Reference in New Issue
Block a user