mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
GUI: Retain scroll position when deleting a save
This commit is contained in:
parent
fb183011dc
commit
6d3ed4268f
@ -467,7 +467,9 @@ void SaveLoadChooserSimple::handleCommand(CommandSender *sender, uint32 cmd, uin
|
||||
_metaEngine->removeSaveState(_target.c_str(), _saveList[selItem].getSaveSlot());
|
||||
|
||||
setResult(-1);
|
||||
_list->setSelected(-1);
|
||||
int scrollPos = _list->getCurrentScrollPos();
|
||||
_list->setSelected(-1); // resets scroll pos
|
||||
_list->scrollTo(scrollPos);
|
||||
|
||||
updateSaveList();
|
||||
updateSelection(true);
|
||||
|
Loading…
Reference in New Issue
Block a user