From 213feb8d7c8c1d4ef75fc72df38e598c1ff44458 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 5 Jul 2017 22:31:11 -0700 Subject: qml: bluetooth: don't display icon unless connection Don't display the bluetooth ToggleButton unless there is a valid avrcp/a2dp connection. Bug-AGL: SPEC-730 Change-Id: Ifd68fd1380bef5a471aafb7687c0cefe62b68e6f Signed-off-by: Matt Ranostay (cherry picked from commit ba403bb3f5c8ce49b1db5ddc51717a2fe957bafd) --- app/MediaPlayer.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index 8eb10f3..77538a6 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -225,7 +225,7 @@ ApplicationWindow { Item { Layout.fillWidth: true } ToggleButton { - enabled: bluetooth.connected + visible: bluetooth.connected checked: bluetooth.av_connected offImage: './images/AGL_MediaPlayer_Bluetooth_Inactive.svg' onImage: './images/AGL_MediaPlayer_Bluetooth_Active.svg' -- cgit 1.2.3-korg