Fixed an issue with sorting favorite folders.

This commit is contained in:
Leon Styhre 2020-08-04 13:39:24 +02:00
parent 95adc63904
commit cc6ef4220e

View file

@ -184,6 +184,11 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
mWindow->setInfoPopup(s); mWindow->setInfoPopup(s);
getCursor()->getSourceFileData()->getSystem()->onMetaDataSavePoint(); getCursor()->getSourceFileData()->getSystem()->onMetaDataSavePoint();
if (!Settings::getInstance()->getBool("FoldersOnTop"))
mRoot->sort(getSortTypeFromString(mRoot->getSortTypeString()),
Settings::getInstance()->getBool("FavoritesFirst"));
ViewController::get()->onFileChanged(getCursor(), FILE_METADATA_CHANGED); ViewController::get()->onFileChanged(getCursor(), FILE_METADATA_CHANGED);
return true; return true;
} }