Commit 0e8d3a94 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵 Committed by Nate Graham
Browse files

remove unused attributes in ViewManager

remove all bits from the old implementation of ViewManager
parent b0404f25
......@@ -310,21 +310,6 @@ public:
{ViewManager::OneAlbumFromArtistAndGenre, ViewManager::OneArtistFromGenre},
};
QString mCurrentAlbumTitle;
QString mCurrentAlbumAuthor;
QString mCurrentArtistName;
QString mCurrentGenreName;
QString mTargetAlbumTitle;
QString mTargetAlbumAuthor;
QString mTargetArtistName;
QString mTargetGenreName;
QUrl mTargetImageUrl;
qulonglong mTargetDatabaseId = 0;
ViewManager::ViewsType mTargetView = ViewManager::Context;
ViewManager::ViewsType mCurrentView = ViewManager::Context;
ViewManager::AlbumViewStyle mAlbumDiscHeader = ViewManager::NoDiscHeaders;
QList<ViewParameters> mViewParametersStack = {mViewsParameters[0]};
ViewParameters mNextViewParameters;
};
......@@ -341,9 +326,7 @@ void ViewManager::openView(int viewIndex)
{
const auto &viewParameters = d->mViewsParameters[viewIndex];
d->mTargetView = viewParameters.mViewType;
if (d->mCurrentView != d->mTargetView) {
if (viewParameters != d->mViewParametersStack.back()) {
d->mViewParametersStack.clear();
d->mNextViewParameters = viewParameters;
openViewFromData(viewParameters);
......
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