mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:42:45 +00:00 
			
		
		
		
	Notification: Use on_close
on_close_request is not called at any point if close is explicitly called, so we must instead use on_close.
This commit is contained in:
		
							parent
							
								
									8f6894d250
								
							
						
					
					
						commit
						e17752fc91
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -113,10 +113,9 @@ NotificationWindow::NotificationWindow(i32 client_id, const String& text, const | |||
|     right_container.set_fixed_width(36); | ||||
|     right_container.set_layout<GUI::HorizontalBoxLayout>(); | ||||
| 
 | ||||
|     on_close_request = [this] { | ||||
|     on_close = [this] { | ||||
|         s_windows.remove(m_id); | ||||
|         update_notification_window_locations(); | ||||
|         return CloseRequestDecision::Close; | ||||
|     }; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nick Johnson
						Nick Johnson