Split composers and performers

This commit is contained in:
Elias Projahn 2023-10-08 15:11:47 +02:00
parent 84612673c1
commit af57fe020c
5 changed files with 137 additions and 48 deletions

View file

@ -54,7 +54,8 @@ impl MusicusSearchTag {
let obj: MusicusSearchTag = glib::Object::new();
obj.imp().label.set_label(&match &tag {
Tag::Person(person) => person.name_fl(),
Tag::Composer(person) => person.name_fl(),
Tag::Performer(person) => person.name_fl(),
Tag::Ensemble(ensemble) => ensemble.name.clone(),
Tag::Work(work) => work.title.clone(),
});
@ -76,7 +77,8 @@ impl MusicusSearchTag {
#[derive(Debug, Clone)]
pub enum Tag {
Person(Person),
Composer(Person),
Performer(Person),
Ensemble(Ensemble),
Work(Work),
}