myes, forgot to add this
This commit is contained in:
parent
bbffa5dbd3
commit
c423993a93
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user