diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-23 20:56:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-27 19:35:45 +0200 |
commit | c7878efb1039f70d3041ac2404d5e299a81fcfec (patch) | |
tree | 59d7195219f5eb3b0e195c0f54dcd7c616147efd /opentrack/main-window.cpp | |
parent | 75044583226009200159f72cb5100f5a7d65e877 (diff) |
trackhat: add updater
Diffstat (limited to 'opentrack/main-window.cpp')
-rw-r--r-- | opentrack/main-window.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index b879e773..fd16a2c6 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -18,6 +18,7 @@ #include "compat/math.hpp" #include "compat/sysexits.hpp" #include "opentrack/defs.hpp" +#include "software-update-dialog.hpp" #include <cstring> #include <utility> @@ -67,6 +68,9 @@ main_window::main_window() : State(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH) connect(&*s.b, &options::bundle_::saving, this, &main_window::register_shortcuts); ui.btnStartTracker->setFocus(); + + updater = std::make_unique<update_query>(this); + updater->maybe_show_dialog(); } void main_window::init_shortcuts() |