fix(appearance): hide icon themes which define themselves as hidden
This commit is contained in:
parent
ab298fab2d
commit
b13333ab7c
1 changed files with 2 additions and 2 deletions
|
|
@ -1490,7 +1490,7 @@ async fn fetch_icon_themes() -> Message {
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
for entry in read_dir.filter_map(Result::ok) {
|
'icon_dir: for entry in read_dir.filter_map(Result::ok) {
|
||||||
let Ok(path) = entry.path().canonicalize() else {
|
let Ok(path) = entry.path().canonicalize() else {
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
@ -1516,7 +1516,7 @@ async fn fetch_icon_themes() -> Message {
|
||||||
|
|
||||||
if let Some(is_hidden) = buffer.strip_prefix("Hidden=") {
|
if let Some(is_hidden) = buffer.strip_prefix("Hidden=") {
|
||||||
if is_hidden.trim() == "true" {
|
if is_hidden.trim() == "true" {
|
||||||
break;
|
continue 'icon_dir;
|
||||||
}
|
}
|
||||||
} else if name.is_none() {
|
} else if name.is_none() {
|
||||||
if let Some(value) = buffer.strip_prefix("Name=") {
|
if let Some(value) = buffer.strip_prefix("Name=") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue