mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 17:58:53 +01:00
Reload menu items when a game is removed from the favourites list. Resort the list(s) when a game is added or removed from the favourites list.
This commit is contained in:
parent
da0fe6c299
commit
ed07075360
@ -690,6 +690,7 @@ void Page::addPlaylist()
|
||||
if(playlist_->first != "favorites" && std::find(items->begin(), items->end(), selectedItem_) == items->end())
|
||||
{
|
||||
items->push_back(selectedItem_);
|
||||
collection->sortItems();
|
||||
collection->saveRequest = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -626,6 +626,7 @@ RetroFE::RETROFE_STATE RetroFE::processUserInput(Page *page)
|
||||
if(input_.newKeyPressed(UserInput::KeyCodeRemovePlaylist))
|
||||
{
|
||||
page->removePlaylist();
|
||||
page->onNewItemSelected();
|
||||
page->reallocateMenuSpritePoints();
|
||||
}
|
||||
if(input_.newKeyPressed(UserInput::KeyCodeAddPlaylist))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user