mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-07-26 13:56:57 +00:00
cargo fmt
This commit is contained in:
@@ -316,9 +316,10 @@ impl SoundpadGui {
|
|||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
) {
|
)
|
||||||
continue;
|
{
|
||||||
}
|
continue;
|
||||||
|
}
|
||||||
read.push(child_path);
|
read.push(child_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -342,17 +343,16 @@ impl SoundpadGui {
|
|||||||
let search_query = search_query.trim();
|
let search_query = search_query.trim();
|
||||||
|
|
||||||
for child in children {
|
for child in children {
|
||||||
if !child.is_dir()
|
if !child.is_dir() && !search_query.is_empty() {
|
||||||
&& !search_query.is_empty() {
|
let file_name = child
|
||||||
let file_name = child
|
.file_name()
|
||||||
.file_name()
|
.unwrap_or_default()
|
||||||
.unwrap_or_default()
|
.to_string_lossy()
|
||||||
.to_string_lossy()
|
.to_string();
|
||||||
.to_string();
|
if !file_name.to_lowercase().contains(search_query) {
|
||||||
if !file_name.to_lowercase().contains(search_query) {
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Self::draw_tree_node(ui, child, config, app_state, audio_player_state, actions);
|
Self::draw_tree_node(ui, child, config, app_state, audio_player_state, actions);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user