summaryrefslogtreecommitdiffstats
path: root/app/MediaPlayer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'app/MediaPlayer.qml')
-rw-r--r--app/MediaPlayer.qml6
1 files changed, 6 insertions, 0 deletions
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'
}