Add boost steady_timer for refresh, and application cleanup

This commit is contained in:
Dan Paulat 2022-05-28 16:58:07 -05:00
parent bb7793d309
commit eb576c5172
3 changed files with 68 additions and 16 deletions

View file

@ -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();