mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Eliminated some unnecessary helpsystem updates
This commit is contained in:
parent
9c76882530
commit
5cb8b1e7e3
|
|
@ -855,6 +855,12 @@ void Window::setHelpPrompts(const std::vector<HelpPrompt>& prompts)
|
|||
|
||||
if (mHelpComponents != nullptr) {
|
||||
for (auto& helpComponent : *mHelpComponents) {
|
||||
if (mGuiStack.size() == 1 &&
|
||||
helpComponent->getHelpComponentScope() == HelpComponentScope::MENU)
|
||||
continue;
|
||||
else if (mGuiStack.size() > 1 &&
|
||||
helpComponent->getHelpComponentScope() == HelpComponentScope::VIEW)
|
||||
continue;
|
||||
helpComponent->clearPrompts();
|
||||
helpComponent->setPrompts(addPrompts);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue