From c7878efb1039f70d3041ac2404d5e299a81fcfec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 23 May 2022 20:56:40 +0200 Subject: trackhat: add updater --- opentrack/main-window.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'opentrack/main-window.cpp') 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 #include @@ -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(this); + updater->maybe_show_dialog(); } void main_window::init_shortcuts() -- cgit v1.2.3