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-14 06:20:27 +0000
commit25da494cecca276affc0743971788b68650df79f (patch)
tree58d0bf109fc3f4255ad8f900c283a6646314ebbd
parentbfb51279e29da3b982825ca6497cc3c90f9eef5e (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'