mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-29 10:08:51 +01:00
reorder component update in reloadable screen update
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
parent
fe18b0329f
commit
ee3c2dd67f
@ -83,9 +83,6 @@ void ReloadableMedia::enableImageFallback_(bool value)
|
||||
void ReloadableMedia::update(float dt)
|
||||
{
|
||||
|
||||
// needs to be ran at the end to prevent the NewItemSelected flag from being detected
|
||||
Component::update(dt);
|
||||
|
||||
// Reload media
|
||||
if (newItemSelected ||
|
||||
(newScrollItemSelected && getMenuScrollReload()))
|
||||
@ -108,6 +105,9 @@ void ReloadableMedia::update(float dt)
|
||||
loadedComponent_->update(dt);
|
||||
}
|
||||
|
||||
// needs to be ran at the end to prevent the NewItemSelected flag from being detected
|
||||
Component::update(dt);
|
||||
|
||||
}
|
||||
|
||||
void ReloadableMedia::allocateGraphicsMemory()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user