mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-26 11:47:25 +01:00 
			
		
		
		
	Update dependencies, use new clone syntax
This commit is contained in:
		
							parent
							
								
									c70abf9594
								
							
						
					
					
						commit
						36b2f1097e
					
				
					 12 changed files with 603 additions and 490 deletions
				
			
		|  | @ -67,21 +67,31 @@ mod imp { | |||
|             self.stack.add_named(&playlist_page, Some("playlist")); | ||||
| 
 | ||||
|             let stack = self.stack.get(); | ||||
|             playlist_page.connect_close(clone!(@weak player_bar, @weak stack => move |_| { | ||||
|                 stack.set_visible_child_name("navigation"); | ||||
|                 player_bar.playlist_hidden(); | ||||
|             })); | ||||
|             playlist_page.connect_close(clone!( | ||||
|                 #[weak] | ||||
|                 player_bar, | ||||
|                 #[weak] | ||||
|                 stack, | ||||
|                 move |_| { | ||||
|                     stack.set_visible_child_name("navigation"); | ||||
|                     player_bar.playlist_hidden(); | ||||
|                 } | ||||
|             )); | ||||
| 
 | ||||
|             player_bar.connect_show_playlist( | ||||
|                 clone!(@weak playlist_page, @weak stack => move |_, show| { | ||||
|             player_bar.connect_show_playlist(clone!( | ||||
|                 #[weak] | ||||
|                 playlist_page, | ||||
|                 #[weak] | ||||
|                 stack, | ||||
|                 move |_, show| { | ||||
|                     if show { | ||||
|                         playlist_page.scroll_to_current(); | ||||
|                         stack.set_visible_child_name("playlist"); | ||||
|                     } else { | ||||
|                         stack.set_visible_child_name("navigation"); | ||||
|                     }; | ||||
|                 }), | ||||
|             ); | ||||
|                 } | ||||
|             )); | ||||
| 
 | ||||
|             self.player | ||||
|                 .bind_property("active", &self.player_bar_revealer.get(), "reveal-child") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue