mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed an issue where a default primary component was not set in GamelistView.
This commit is contained in:
parent
db72d41ef0
commit
b96f6bc131
|
@ -245,6 +245,9 @@ void GamelistView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
|
|||
}
|
||||
}
|
||||
|
||||
mHelpStyle.applyTheme(mTheme, "gamelist");
|
||||
}
|
||||
|
||||
if (mPrimary == nullptr) {
|
||||
mTextList = std::make_unique<TextListComponent<FileData*>>();
|
||||
mPrimary = mTextList.get();
|
||||
|
@ -259,9 +262,7 @@ void GamelistView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
|
|||
addChild(mPrimary);
|
||||
}
|
||||
|
||||
mHelpStyle.applyTheme(mTheme, "gamelist");
|
||||
populateList(mRoot->getChildrenListToDisplay(), mRoot);
|
||||
}
|
||||
|
||||
// Disable quick system select if the primary component uses the left and right buttons.
|
||||
if (mCarousel != nullptr) {
|
||||
|
|
Loading…
Reference in a new issue