mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	Notification: Allow getting window by ID
This is a neccessity so a connection can get the notification it is connected to for later updates.
This commit is contained in:
		
							parent
							
								
									a437430294
								
							
						
					
					
						commit
						f2814dd6c1
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		|  | @ -128,4 +128,10 @@ NotificationWindow::~NotificationWindow() | |||
| { | ||||
| } | ||||
| 
 | ||||
| RefPtr<NotificationWindow> NotificationWindow::get_window_by_id(i32 id) | ||||
| { | ||||
|     auto window = s_windows.get(id); | ||||
|     return window.value_or(nullptr); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nick Johnson
						Nick Johnson