mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-26 11:47:25 +01:00 
			
		
		
		
	Fix audio CD import
This commit is contained in:
		
							parent
							
								
									ed8b7c0d97
								
							
						
					
					
						commit
						8fed2d7a18
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -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 | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -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); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue