mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:42:44 +00:00 
			
		
		
		
	 72a3f69df7
			
		
	
	
		72a3f69df7
		
	
	
	
	
		
			
			This behavior and API was extremely counter-intuitive since our default behavior was for applications to never exit after you close all of their windows. Now that we exit the event loop by default when the very last GWindow is deleted, we don't have to worry about this.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			288 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			288 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "IRCAppWindow.h"
 | |
| #include "IRCClient.h"
 | |
| #include <LibGUI/GApplication.h>
 | |
| #include <stdio.h>
 | |
| 
 | |
| int main(int argc, char** argv)
 | |
| {
 | |
|     GApplication app(argc, argv);
 | |
| 
 | |
|     IRCAppWindow app_window;
 | |
|     app_window.show();
 | |
| 
 | |
|     printf("Entering main loop...\n");
 | |
|     return app.exec();
 | |
| }
 |