From b51f99ab77dbe40350cd8a12cfa12bd79fbdf4fb Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 5 Apr 2021 12:37:52 +0200 Subject: [PATCH] Fixed an issue where the system view style would not always get properly set. --- es-app/src/views/ViewController.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index 8bfc29de8..4ac76121d 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -523,6 +523,19 @@ void ViewController::goToGameList(SystemData* system) mState.viewing = GAME_LIST; mState.system = system; + auto it = mGameListViews.find(system); + if (it != mGameListViews.cend()) { + std::string viewStyle = it->second->getName(); + if (viewStyle == "basic") + mState.viewstyle = BASIC; + else if (viewStyle == "detailed") + mState.viewstyle = DETAILED; + else if (viewStyle == "video") + mState.viewstyle = VIDEO; + else if (viewStyle == "grid") + mState.viewstyle = GRID; + } + if (mCurrentView) mCurrentView->onShow();