X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2FMediaPlayer.qml;h=ba66a42a1aa0f72e46c97e982acab68d6a272757;hb=refs%2Ftags%2Fflounder%2F6.0.3;hp=c338af980d3894220db35e75791b14b72ad2a581;hpb=3b9a93916b469198b5515290c66341dc48fc8fc1;p=apps%2Fmediaplayer.git diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index c338af9..ba66a42 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -242,6 +242,12 @@ ApplicationWindow { visible: true enabled: false checked: player.av_connected + onClicked: { + if (checked) + mediaplayer.disconnect() + else + mediaplayer.connected() + } offImage: './images/AGL_MediaPlayer_Bluetooth_Inactive.svg' onImage: './images/AGL_MediaPlayer_Bluetooth_Active.svg' }