mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
Fixed an issue where the system view style would not always get properly set.
This commit is contained in:
parent
e0e1a05f1e
commit
b51f99ab77
|
@ -523,6 +523,19 @@ void ViewController::goToGameList(SystemData* system)
|
||||||
mState.viewing = GAME_LIST;
|
mState.viewing = GAME_LIST;
|
||||||
mState.system = system;
|
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)
|
if (mCurrentView)
|
||||||
mCurrentView->onShow();
|
mCurrentView->onShow();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue