From 4029ee060339551fe885c21a297efad0f8dd864e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 May 2019 01:38:13 +0200 Subject: opentrack: fix tray (?) --- opentrack/main-window.cpp | 7 ++++--- 1 file 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() -- cgit v1.2.3