myes, forgot to add this
This commit is contained in:
@@ -66,6 +66,7 @@ impl SongList {
|
|||||||
let should_display = match &query_type {
|
let should_display = match &query_type {
|
||||||
SearchType::Normal |
|
SearchType::Normal |
|
||||||
SearchType::Author |
|
SearchType::Author |
|
||||||
|
SearchType::Genre |
|
||||||
SearchType::Source if query_text.is_empty() => true,
|
SearchType::Source if query_text.is_empty() => true,
|
||||||
|
|
||||||
SearchType::Source => {
|
SearchType::Source => {
|
||||||
@@ -83,6 +84,13 @@ impl SongList {
|
|||||||
.to_lowercase()
|
.to_lowercase()
|
||||||
.contains(&query_text)
|
.contains(&query_text)
|
||||||
},
|
},
|
||||||
|
SearchType::Genre => {
|
||||||
|
song.genres()
|
||||||
|
.iter()
|
||||||
|
.map(|v| v.to_lowercase().contains(&query_text))
|
||||||
|
.collect::<Vec<bool>>()
|
||||||
|
.contains(&true)
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
if should_display {
|
if should_display {
|
||||||
|
|||||||
Reference in New Issue
Block a user