mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Retain scroll position after refreshing game list.
Fixes issue 5878.
This commit is contained in:
@ -259,6 +259,7 @@ void CGameListCtrl::BrowseForDirectory()
|
|||||||
|
|
||||||
void CGameListCtrl::Update()
|
void CGameListCtrl::Update()
|
||||||
{
|
{
|
||||||
|
int scrollPos = wxWindow::GetScrollPos(wxVERTICAL);
|
||||||
// Don't let the user refresh it while a game is running
|
// Don't let the user refresh it while a game is running
|
||||||
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
||||||
return;
|
return;
|
||||||
@ -363,6 +364,7 @@ void CGameListCtrl::Update()
|
|||||||
Show();
|
Show();
|
||||||
|
|
||||||
AutomaticColumnWidth();
|
AutomaticColumnWidth();
|
||||||
|
ScrollLines(scrollPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString NiceSizeFormat(s64 _size)
|
wxString NiceSizeFormat(s64 _size)
|
||||||
|
Reference in New Issue
Block a user