Commit 24742a2b authored by Matthieu Gallien's avatar Matthieu Gallien 🎵

fix display or not of disc headers only when needed

if the album has only one disc, no need to show disc headers

if the album has multiple discs, show disc headers
parent 61011bbf
......@@ -126,6 +126,7 @@ void ViewManager::openChildView(const DataTypes::MusicDataType &fullData)
<< fullData[DataTypes::DatabaseIdRole]
<< fullData[DataTypes::FilePathRole]
<< fullData[DataTypes::ElementTypeRole]
<< fullData[DataTypes::IsSingleDiscAlbumRole]
<< d->mViewParametersStack.size();
if (!d->mViewParametersStack.size()) {
......@@ -171,6 +172,11 @@ void ViewManager::openChildView(const DataTypes::MusicDataType &fullData)
break;
}
if (dataType == ElisaUtils::Album && nextViewParameters.mDataFilter[DataTypes::IsSingleDiscAlbumRole].toBool())
{
nextViewParameters.mAlbumViewStyle = NoDiscHeaders;
}
d->mNextViewParameters = nextViewParameters;
if (lastView.mDataType != dataType) {
......
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