mediaplayer: readd connect/disconnect from avrcp + a2dp profiles
[apps/mediaplayer.git] / app / MediaPlayer.qml
index c338af9..ba66a42 100644 (file)
@@ -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'
                         }