Fixed RPF explorer search results back/forward bug

This commit is contained in:
dexy 2018-12-14 22:17:13 +11:00
parent f84b51d1c1
commit f24691a586

View File

@ -1068,7 +1068,10 @@ namespace CodeWalker
MainListView.VirtualListSize = 0; MainListView.VirtualListSize = 0;
if (CurrentFolder != null) if (CurrentFolder != null)
{ {
CurrentFolder.ListItems = null; //makes sure to rebuild the current files list if (!CurrentFolder.IsSearchResults)
{
CurrentFolder.ListItems = null; //makes sure to rebuild the current files list
}
CurrentFiles = CurrentFolder.GetListItems(); CurrentFiles = CurrentFolder.GetListItems();
foreach (var file in CurrentFiles) //cache all the data for use by the list view. foreach (var file in CurrentFiles) //cache all the data for use by the list view.