Commit 5301e529 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵

avoid metadata persisting in header bar when missing from playing track

Summary: ensure that if artist, albumArtist or title are empty, they become empty in header bar

Test Plan: play a track with all metadata and next a track without album metadata

Reviewers: #elisa, astippich, ngraham, jguidon

Reviewed By: #elisa, astippich

Differential Revision: https://phabricator.kde.org/D24231
parent 2b01e6f9
......@@ -192,10 +192,10 @@ ApplicationWindow {
Layout.fillWidth: true
tracksCount: elisa.mediaPlayList.remainingTracks
album: elisa.manageHeaderBar.album
album: (elisa.manageHeaderBar.album !== undefined ? elisa.manageHeaderBar.album : '')
title: elisa.manageHeaderBar.title
artist: elisa.manageHeaderBar.artist
albumArtist: elisa.manageHeaderBar.albumArtist
artist: (elisa.manageHeaderBar.artist !== undefined ? elisa.manageHeaderBar.artist : '')
albumArtist: (elisa.manageHeaderBar.albumArtist !== undefined ? elisa.manageHeaderBar.albumArtist : '')
image: elisa.manageHeaderBar.image
albumID: elisa.manageHeaderBar.albumId
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment