myes, forgot to add this

This commit is contained in:
Gvidas Juknevičius 2026-01-11 22:42:02 +02:00
parent bbffa5dbd3
commit c423993a93

View File

@ -66,6 +66,7 @@ impl SongList {
let should_display = match &query_type {
SearchType::Normal |
SearchType::Author |
SearchType::Genre |
SearchType::Source if query_text.is_empty() => true,
SearchType::Source => {
@ -83,6 +84,13 @@ impl SongList {
.to_lowercase()
.contains(&query_text)
},
SearchType::Genre => {
song.genres()
.iter()
.map(|v| v.to_lowercase().contains(&query_text))
.collect::<Vec<bool>>()
.contains(&true)
},
};
if should_display {