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() }