mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:10:04 +00:00 
			
		
		
		
	Add boost steady_timer for refresh, and application cleanup
This commit is contained in:
		
							parent
							
								
									bb7793d309
								
							
						
					
					
						commit
						eb576c5172
					
				
					 3 changed files with 68 additions and 16 deletions
				
			
		|  | @ -1,5 +1,6 @@ | |||
| #include <scwx/qt/config/radar_site.hpp> | ||||
| #include <scwx/qt/main/main_window.hpp> | ||||
| #include <scwx/qt/manager/radar_product_manager.hpp> | ||||
| #include <scwx/qt/manager/resource_manager.hpp> | ||||
| #include <scwx/qt/manager/settings_manager.hpp> | ||||
| #include <scwx/util/logger.hpp> | ||||
|  | @ -53,10 +54,16 @@ int main(int argc, char* argv[]) | |||
|    scwx::qt::manager::ResourceManager::PreLoad(); | ||||
| 
 | ||||
|    // Run Qt main loop
 | ||||
|    QApplication               a(argc, argv); | ||||
|    scwx::qt::main::MainWindow w; | ||||
|    w.show(); | ||||
|    int result = a.exec(); | ||||
|    int result; | ||||
|    { | ||||
|       QApplication               a(argc, argv); | ||||
|       scwx::qt::main::MainWindow w; | ||||
|       w.show(); | ||||
|       result = a.exec(); | ||||
|    } | ||||
| 
 | ||||
|    // Deinitialize application
 | ||||
|    scwx::qt::manager::RadarProductManager::Cleanup(); | ||||
| 
 | ||||
|    // Gracefully stop the io_context main loop
 | ||||
|    work.reset(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat