summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/MediaPlayer.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml
index ba66a42..7cca337 100644
--- a/app/MediaPlayer.qml
+++ b/app/MediaPlayer.qml
@@ -240,13 +240,12 @@ ApplicationWindow {
ToggleButton {
visible: true
- enabled: false
checked: player.av_connected
onClicked: {
if (checked)
- mediaplayer.disconnect()
+ mediaplayer.connect()
else
- mediaplayer.connected()
+ mediaplayer.disconnect()
}
offImage: './images/AGL_MediaPlayer_Bluetooth_Inactive.svg'
onImage: './images/AGL_MediaPlayer_Bluetooth_Active.svg'