summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-05-25 01:38:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-05-25 01:38:13 +0200
commit4029ee060339551fe885c21a297efad0f8dd864e (patch)
tree40cb5aa7f44089bdf16e20d7fecefbb7dbf822bd /opentrack
parent35fccdf288131ddcec5d13ffef0c0780ef4d2361 (diff)
opentrack: fix tray (?)
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/main-window.cpp7
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()