Commit 94420a88 authored by Tranter Madi's avatar Tranter Madi 🌧
Browse files

Better fix for displaying lyric of unindexed tracks

parent c78ed912
Pipeline #174173 passed with stage
in 4 minutes and 48 seconds
......@@ -16,6 +16,7 @@ void TrackContextMetaDataModel::filterDataFromTrackData()
removeMetaData(DataTypes::ArtistRole);
removeMetaData(DataTypes::AlbumRole);
removeMetaData(DataTypes::AlbumArtistRole);
removeMetaData(DataTypes::LyricsRole);
if (dataFromType(DataTypes::IsSingleDiscAlbumRole).toBool() &&
dataFromType(DataTypes::DiscNumberRole).toInt() == 1) {
......
......@@ -303,6 +303,8 @@ void TrackMetadataModel::fillDataFromTrackData(const TrackMetadataModel::TrackDa
if (trackData.hasDatabaseId()) {
fetchLyrics();
} else {
Q_EMIT lyricsChanged();
}
mDatabaseId = trackData[DataTypes::DatabaseIdRole].toULongLong();
......
Supports Markdown
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