mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Insert part after selected index in recording editor
This commit is contained in:
parent
99bbd9e58f
commit
a763b8a9c3
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ use std::rc::Rc;
|
||||||
|
|
||||||
/// A widget for creating or editing a recording.
|
/// A widget for creating or editing a recording.
|
||||||
// TODO: Disable buttons if no performance is selected.
|
// TODO: Disable buttons if no performance is selected.
|
||||||
|
// TODO: Initialize comment entry.
|
||||||
pub struct RecordingEditor {
|
pub struct RecordingEditor {
|
||||||
pub widget: gtk::Box,
|
pub widget: gtk::Box,
|
||||||
backend: Rc<Backend>,
|
backend: Rc<Backend>,
|
||||||
|
|
@ -130,7 +131,7 @@ impl RecordingEditor {
|
||||||
None => performances.len(),
|
None => performances.len(),
|
||||||
};
|
};
|
||||||
|
|
||||||
performances.push(performance);
|
performances.insert(index, performance);
|
||||||
this.performance_list.show_items(performances.clone());
|
this.performance_list.show_items(performances.clone());
|
||||||
this.performance_list.select_index(index);
|
this.performance_list.select_index(index);
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue