From 60c4ec000a66f09a8db214c0b91386b6aed164d5 Mon Sep 17 00:00:00 2001 From: consti10 Date: Fri, 1 Dec 2023 17:50:08 +0100 Subject: [PATCH] don't show on rpi (there it doesn't work) --- qml/ui/widgets/VideoBitrateWidgetGeneric.qml | 3 ++- qml/ui/widgets/VideoBitrateWidgetSecondary.qml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qml/ui/widgets/VideoBitrateWidgetGeneric.qml b/qml/ui/widgets/VideoBitrateWidgetGeneric.qml index 897b36905..bbdecf748 100644 --- a/qml/ui/widgets/VideoBitrateWidgetGeneric.qml +++ b/qml/ui/widgets/VideoBitrateWidgetGeneric.qml @@ -32,6 +32,7 @@ BaseWidget { widgetActionHeight: 420 property var m_camera_stream_model: m_is_for_primary_camera ? _cameraStreamModelPrimary : _cameraStreamModelSecondary + property bool m_show_button_quick_switch: false // param - so therefore might not be always synchronized property string m_curr_video_format: m_is_for_primary_camera ? _cameraStreamModelPrimary.curr_set_video_format : _cameraStreamModelSecondary.curr_set_video_format @@ -345,7 +346,7 @@ BaseWidget { Item { width: parent.width height: 32 - visible: !m_is_for_primary_camera + visible: m_show_button_quick_switch Button{ text: "Switch primary & secondary" onClicked: settings.qopenhd_switch_primary_secondary = !settings.qopenhd_switch_primary_secondary diff --git a/qml/ui/widgets/VideoBitrateWidgetSecondary.qml b/qml/ui/widgets/VideoBitrateWidgetSecondary.qml index 3850bbc99..ebbd9c7e7 100644 --- a/qml/ui/widgets/VideoBitrateWidgetSecondary.qml +++ b/qml/ui/widgets/VideoBitrateWidgetSecondary.qml @@ -12,4 +12,6 @@ VideoBitrateWidgetGeneric{ m_is_for_primary_camera: false // Also show it if air has a seconary cam visible: (settings.show_bitrate && settings.dev_qopenhd_n_cameras>1) || (settings.show_bitrate && _ohdSystemAir.dirty_air_has_secondary_cam) + + m_show_button_quick_switch: _qopenhd.is_linux() && !_qopenhd.is_platform_rpi() }