mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed an issue where the default helpsystem element was not displayed if there was no theme configuration for it
This commit is contained in:
parent
e74e8decbb
commit
9c76882530
|
|
@ -514,7 +514,11 @@ void GamelistView::render(const glm::mat4& parentTrans)
|
|||
|
||||
std::vector<HelpPrompt> GamelistView::getHelpPrompts()
|
||||
{
|
||||
if (mHelpComponents.empty())
|
||||
mWindow->passHelpComponents(nullptr);
|
||||
else
|
||||
mWindow->passHelpComponents(&mHelpComponents);
|
||||
|
||||
std::vector<HelpPrompt> prompts;
|
||||
|
||||
if (Settings::getInstance()->getString("QuickSystemSelect") != "disabled") {
|
||||
|
|
|
|||
|
|
@ -211,7 +211,11 @@ void SystemView::onThemeChanged(const std::shared_ptr<ThemeData>& /*theme*/)
|
|||
|
||||
std::vector<HelpPrompt> SystemView::getHelpPrompts()
|
||||
{
|
||||
if (mSystemElements[mPrimary->getCursor()].helpComponents.empty())
|
||||
mWindow->passHelpComponents(nullptr);
|
||||
else
|
||||
mWindow->passHelpComponents(&mSystemElements[mPrimary->getCursor()].helpComponents);
|
||||
|
||||
std::vector<HelpPrompt> prompts;
|
||||
|
||||
if (mCarousel != nullptr) {
|
||||
|
|
@ -885,7 +889,11 @@ void SystemView::populate()
|
|||
}
|
||||
}
|
||||
|
||||
if (mSystemElements[mPrimary->getCursor()].helpComponents.empty())
|
||||
mWindow->passHelpComponents(nullptr);
|
||||
else
|
||||
mWindow->passHelpComponents(&mSystemElements[mPrimary->getCursor()].helpComponents);
|
||||
|
||||
mFadeTransitions = (static_cast<ViewTransitionAnimation>(Settings::getInstance()->getInt(
|
||||
"TransitionsSystemToSystem")) == ViewTransitionAnimation::FADE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue