diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-06 19:44:07 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-10 05:01:33 +0200 |
commit | a6c4bab412e45c327c32e56fb77e235bbc9f9d84 (patch) | |
tree | 12807acd9911c5e9ef75e255277400a9672ff998 /opentrack/main-window.cpp | |
parent | 178a4b316e75d1edf17024b05b39452be88cdac4 (diff) |
trackhat: add software update check
Diffstat (limited to 'opentrack/main-window.cpp')
-rw-r--r-- | opentrack/main-window.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index 2d8dbbd3..bff3d080 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> @@ -63,6 +64,11 @@ 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(); + + { + auto dlg = update_query{this}; + dlg.maybe_show_dialog(); + } } void main_window::init_shortcuts() |