mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-26 19:57:25 +01:00 
			
		
		
		
	Use navigator for main window
This commit is contained in:
		
							parent
							
								
									43023fdb5b
								
							
						
					
					
						commit
						88e1c97143
					
				
					 15 changed files with 619 additions and 768 deletions
				
			
		|  | @ -353,6 +353,24 @@ impl Player { | |||
|         Ok(()) | ||||
|     } | ||||
| 
 | ||||
|     pub fn send_data(&self) { | ||||
|         for cb in &*self.playlist_cbs.borrow() { | ||||
|             cb(self.playlist.borrow().clone()); | ||||
|         } | ||||
| 
 | ||||
|         for cb in &*self.track_cbs.borrow() { | ||||
|             cb(self.current_item.get().unwrap(), self.current_track.get().unwrap()); | ||||
|         } | ||||
| 
 | ||||
|         for cb in &*self.duration_cbs.borrow() { | ||||
|             cb(self.player.get_duration().mseconds().unwrap()); | ||||
|         } | ||||
| 
 | ||||
|         for cb in &*self.playing_cbs.borrow() { | ||||
|             cb(self.is_playing()); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     pub fn clear(&self) { | ||||
|         self.player.stop(); | ||||
|         self.playing.set(false); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Elias Projahn
						Elias Projahn