mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Fixed a crash when unflagging the last file entry as favorite.
This commit is contained in:
parent
e51c7ddf8c
commit
546f6304ef
|
@ -307,7 +307,9 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
|||
// Jump to the first entry in the gamelist if the last favorite was unmarked.
|
||||
if (foldersOnTop && removedLastFavorite &&
|
||||
!entryToUpdate->getSystem()->isCustomCollection())
|
||||
setCursor(getFirstGameEntry());
|
||||
ViewController::get()->getGameListView(entryToUpdate->getSystem())->
|
||||
setCursor(ViewController::get()->getGameListView(entryToUpdate->
|
||||
getSystem())->getFirstGameEntry());
|
||||
else if (removedLastFavorite &&
|
||||
!entryToUpdate->getSystem()->isCustomCollection())
|
||||
setCursor(getFirstEntry());
|
||||
|
|
Loading…
Reference in a new issue