Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Retain scroll position after refreshing game list.
Fixes issue 5878.
  • Loading branch information
RachelBryk committed Jan 10, 2013
1 parent 2c1c538 commit ab24149
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/DolphinWX/Src/GameListCtrl.cpp
Expand Up @@ -259,6 +259,7 @@ void CGameListCtrl::BrowseForDirectory()

void CGameListCtrl::Update()
{
int scrollPos = wxWindow::GetScrollPos(wxVERTICAL);
// Don't let the user refresh it while a game is running
if (Core::GetState() != Core::CORE_UNINITIALIZED)
return;
Expand Down Expand Up @@ -363,6 +364,7 @@ void CGameListCtrl::Update()
Show();

AutomaticColumnWidth();
ScrollLines(scrollPos);
}

wxString NiceSizeFormat(s64 _size)
Expand Down

0 comments on commit ab24149

Please sign in to comment.