diff options
-rw-r--r-- | opentrack/main-window.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index e7134e08..6d2267b0 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -45,16 +45,17 @@ main_window::main_window() : State(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH) init_buttons(); init_dylibs(); init_shortcuts(); + + adjustSize(); init_tray_menu(); + setVisible(start_in_tray()); + ensure_tray(); connect(&pose_update_timer, &QTimer::timeout, this, &main_window::show_pose, Qt::DirectConnection); connect(&det_timer, &QTimer::timeout, this, &main_window::maybe_start_profile_from_executable); det_timer.start(1000); - - adjustSize(); - ensure_tray(); // calls QWidget::show() } void main_window::init_shortcuts() |