summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-12-13 11:18:49 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-12-13 22:12:06 -0800
commit01820c0e9c4a64eca10ede8222c2c7ad719f286d (patch)
tree38b4ace6b8da3aa0133e482b07856a9fedc0480c
parent59d74504d5f36a84c74b7a8161a7e934b068bb01 (diff)
mediaplayer: qml: fix libqtappfw method calls
* typo .connected() should be .connect() * fix incorrect logic check of checked field * enable state changes to ToggleButton Bug-AGL: SPEC-1630 Change-Id: I7495aa4aaa784383510b803cf88b177b7222b181 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-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'