mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Show recordings in main window
This commit is contained in:
parent
5a95db69fe
commit
baea690ae6
5 changed files with 84 additions and 2 deletions
|
|
@ -135,6 +135,18 @@ pub struct RecordingDescription {
|
|||
pub performances: Vec<PerformanceDescription>,
|
||||
}
|
||||
|
||||
impl RecordingDescription {
|
||||
pub fn get_performers(&self) -> String {
|
||||
let texts: Vec<String> = self
|
||||
.performances
|
||||
.iter()
|
||||
.map(|performance| performance.get_title())
|
||||
.collect();
|
||||
|
||||
texts.join(", ")
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct RecordingInsertion {
|
||||
pub recording: Recording,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue