mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-26 19:57:25 +01:00 
			
		
		
		
	import: Use watch channel for state updates
This commit is contained in:
		
							parent
							
								
									e43486367b
								
							
						
					
					
						commit
						690a150727
					
				
					 4 changed files with 61 additions and 27 deletions
				
			
		|  | @ -135,19 +135,6 @@ impl Screen<Arc<ImportSession>, ()> for MediumEditor { | |||
|             this.handle.pop(None); | ||||
|         })); | ||||
| 
 | ||||
|         spawn!(@clone this, async move { | ||||
|             match this.session.copy().await { | ||||
|                 Err(err) => { | ||||
|                     this.disc_status_page.set_description(Some(&err.to_string())); | ||||
|                     this.widget.set_visible_child_name("disc_error"); | ||||
|                 }, | ||||
|                 Ok(_) => { | ||||
|                     this.done_stack.set_visible_child(&this.done); | ||||
|                     this.done_button.set_sensitive(true); | ||||
|                 } | ||||
|             } | ||||
|         }); | ||||
| 
 | ||||
|         this | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Elias Projahn
						Elias Projahn