diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-12 15:06:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-05 14:44:25 +0200 |
commit | 7c5b8125bd24800b890b96594672b075d4d29b83 (patch) | |
tree | c49163740a6c213e200e051c375a38ffe60d7b75 /opentrack | |
parent | 03ebfb08cd13346ca76ebf4264f41abb692afd02 (diff) |
gui: enable module tabs even on small screens
Diffstat (limited to 'opentrack')
-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) |