Fixed an issue where a default primary component was not set in GamelistView.

This commit is contained in:
Leon Styhre 2022-03-25 21:50:50 +01:00
parent db72d41ef0
commit b96f6bc131

View file

@ -245,6 +245,9 @@ void GamelistView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
} }
} }
mHelpStyle.applyTheme(mTheme, "gamelist");
}
if (mPrimary == nullptr) { if (mPrimary == nullptr) {
mTextList = std::make_unique<TextListComponent<FileData*>>(); mTextList = std::make_unique<TextListComponent<FileData*>>();
mPrimary = mTextList.get(); mPrimary = mTextList.get();
@ -259,9 +262,7 @@ void GamelistView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
addChild(mPrimary); addChild(mPrimary);
} }
mHelpStyle.applyTheme(mTheme, "gamelist");
populateList(mRoot->getChildrenListToDisplay(), mRoot); populateList(mRoot->getChildrenListToDisplay(), mRoot);
}
// Disable quick system select if the primary component uses the left and right buttons. // Disable quick system select if the primary component uses the left and right buttons.
if (mCarousel != nullptr) { if (mCarousel != nullptr) {