Skip to content

Commit

Permalink
Merge pull request #624 from OpenHD/consti-dev
Browse files Browse the repository at this point in the history
quick switch only works on x86
  • Loading branch information
Consti10 authored Dec 2, 2023
2 parents ea129ed + 60c4ec0 commit c771c24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qml/ui/widgets/VideoBitrateWidgetGeneric.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions qml/ui/widgets/VideoBitrateWidgetSecondary.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit c771c24

Please sign in to comment.