Fix audio CD import

This commit is contained in:
Elias Projahn 2021-10-19 11:25:45 +02:00
parent ed8b7c0d97
commit 8fed2d7a18
2 changed files with 4 additions and 2 deletions

View file

@ -166,6 +166,9 @@ impl Screen<Arc<ImportSession>, ()> for ImportScreen {
this.load_matches(); this.load_matches();
// Copy the tracks in the background, if neccessary.
this.session.copy();
this this
} }
} }

View file

@ -197,8 +197,7 @@ impl MediumPreview {
/// Handle a state change of the import process. /// Handle a state change of the import process.
fn handle_state(&self, state: &State) { fn handle_state(&self, state: &State) {
match state { match state {
State::Waiting => todo!("This shouldn't happen."), State::Waiting | State::Copying => self.done_stack.set_visible_child_name("loading"),
State::Copying => self.done_stack.set_visible_child_name("loading"),
State::Ready => { State::Ready => {
self.done_stack.set_visible_child_name("ready"); self.done_stack.set_visible_child_name("ready");
self.import_button.set_sensitive(true); self.import_button.set_sensitive(true);