diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-12 15:06:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-12 15:06:51 +0200 |
commit | 65b582c01150dce7971b14c8535a80a140012e39 (patch) | |
tree | 79de331d66acfb5369e2dcfb4ff517aeb17ca888 /opentrack/main-window.cpp | |
parent | b4a5d5ab0eb5b43e142de48708292845219af0ae (diff) |
gui: enable module tabs even on small screens
Diffstat (limited to 'opentrack/main-window.cpp')
-rw-r--r-- | opentrack/main-window.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index a8146120..ac30fd82 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -569,6 +569,8 @@ void main_window::show_pose() bool main_window::module_tabs_enabled() const { + return true; +#if 0 enum module_tab_state { tabs_maybe = -1, tabs_disable, tabs_enable }; static const auto force = progn( @@ -602,9 +604,10 @@ bool main_window::module_tabs_enabled() const return false; // Windows 10: 40px, Windows 11: 48px, KDE: 51px constexpr int taskbar_size = 51; - constexpr int min_avail_height = 910 - taskbar_size; + constexpr int min_avail_height = 768 - taskbar_size; QRect rect = d->availableGeometry(this); return rect.height() >= min_avail_height; +#endif } static void show_window(QWidget& d, bool fresh) |