mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-30 21:01:00 +00:00 
			
		
		
		
	LibGUI+FileManager: Add GAbstractView::on_selection_change hook
This hook will be called whenever the view's selection changes somehow. Use this in the FileManager to keep the left and right views in sync.
This commit is contained in:
		
							parent
							
								
									9d97781e37
								
							
						
					
					
						commit
						6dec328af7
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-19 12:13:23 +09:00 
				
			
			Author: https://github.com/awesomekling
Commit: 6dec328af7
			
					 3 changed files with 6 additions and 2 deletions
				
			
		|  | @ -100,5 +100,8 @@ void GAbstractView::activate(const GModelIndex& index) | |||
| 
 | ||||
| void GAbstractView::notify_selection_changed(Badge<GModelSelection>) | ||||
| { | ||||
|     did_update_selection(); | ||||
|     if (on_selection_change) | ||||
|         on_selection_change(); | ||||
|     update(); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling