From adda412369a0ee8956155fc1ba22b57aef399271 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Mon, 19 Mar 2012 15:33:38 +0000 Subject: [PATCH] Lua Console - track changes on Move Up / Down --- BizHawk.MultiClient/tools/LuaConsole.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/BizHawk.MultiClient/tools/LuaConsole.cs b/BizHawk.MultiClient/tools/LuaConsole.cs index 4037b862eb..b7396c5f77 100644 --- a/BizHawk.MultiClient/tools/LuaConsole.cs +++ b/BizHawk.MultiClient/tools/LuaConsole.cs @@ -396,7 +396,7 @@ namespace BizHawk.MultiClient //Note: here it will get flagged many times redundantly potentially, //but this avoids it being flagged falsely when the user did not select an index - //Changes(); + changes = true; } List i = new List(); for (int z = 0; z < indexes.Count; z++) @@ -406,7 +406,6 @@ namespace BizHawk.MultiClient for (int z = 0; z < i.Count; z++) LuaListView.SelectItem(i[z], true); - DisplayLuaList(); } @@ -429,7 +428,7 @@ namespace BizHawk.MultiClient //Note: here it will get flagged many times redundantly potnetially, //but this avoids it being flagged falsely when the user did not select an index - //Changes(); + changes = true; } List i = new List(); @@ -437,8 +436,8 @@ namespace BizHawk.MultiClient i.Add(indexes[z] + 1); LuaListView.SelectedIndices.Clear(); - //for (int z = 0; z < i.Count; z++) - //CheatListView.SelectItem(i[z], true); //TODO + for (int z = 0; z < i.Count; z++) + LuaListView.SelectItem(i[z], true); DisplayLuaList(); }