mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
d6744b4cb9
commit
cb5139c43a
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ impl Preset {
|
|||
let Ok(user) = std::fs::read_to_string(p.join("theme.toml")) else {
|
||||
return include_str!("../preset/theme.toml").to_owned();
|
||||
};
|
||||
let Some(use_) = Flavor::parse_name(&user) else {
|
||||
let Some(use_) = Flavor::parse_use(&user) else {
|
||||
return Self::merge_str(&user, include_str!("../preset/theme.toml"));
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ pub struct Flavor {
|
|||
}
|
||||
|
||||
impl Flavor {
|
||||
pub fn parse_name(s: &str) -> Option<String> {
|
||||
pub fn parse_use(s: &str) -> Option<String> {
|
||||
#[derive(Deserialize)]
|
||||
struct Outer {
|
||||
flavor: Inner,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue