Ram Search - more efficient implementation of Undo
This commit is contained in:
parent
8ae5dc748f
commit
5c78391252
|
@ -316,18 +316,14 @@ namespace BizHawk.MultiClient
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void SaveUndo()
|
private void SaveUndo()
|
||||||
{
|
{
|
||||||
undoList.Clear();
|
undoList = new List<Watch>(searchList);
|
||||||
for (int x = 0; x < searchList.Count; x++)
|
|
||||||
undoList.Add(searchList[x]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DoUndo()
|
private void DoUndo()
|
||||||
{
|
{
|
||||||
if (undoList.Count > 0)
|
if (undoList.Count > 0)
|
||||||
{
|
{
|
||||||
searchList.Clear();
|
searchList = new List<Watch>(undoList);
|
||||||
for (int x = 0; x < undoList.Count; x++)
|
|
||||||
searchList.Add(undoList[x]);
|
|
||||||
undoList.Clear();
|
undoList.Clear();
|
||||||
DisplaySearchList();
|
DisplaySearchList();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue