only show time and progress bar when the length is actually set
commit7a468ba77a8a29107d4d3fa498a9dc735be49939
authorMichael Zanetti <michael.zanetti@canonical.com>
dateMon 25 Nov 2013, 12:46 (13 years ago)
parenta072b35
Dash/Music/MusicPreview.qml+1−1
@@ -172,7 +172,7 @@ GenericPreview {
172172 id: progressBarImage
173173 anchors { left: parent.left; top: parent.bottom; right: parent.right }
174174 height: units.dp(6)
175− visible: audioPlayer.playbackState != Audio.StoppedState && trackItem.isPlayingItem
175+ visible: audioPlayer.playbackState != Audio.StoppedState && trackItem.isPlayingItem && model.length.length > 0
176176 source: "graphics/music_progress_bg.png"
177177 }
178178 }