Ram Watch/Cheat Window/Lua Console - when deleting, clear selected items

This commit is contained in:
andres.delikat 2011-08-17 00:26:34 +00:00
parent e703d3a99f
commit c5f2d02f68
4 changed files with 5 additions and 0 deletions

View File

@ -572,6 +572,7 @@ namespace BizHawk.MultiClient
{
Global.CheatList.Remove(Global.CheatList.Cheat(indexes[0])); //index[0] used since each iteration will make this the correct list index
}
indexes.Clear();
DisplayCheatsList();
}
}

View File

@ -227,12 +227,14 @@
//
// editToolStripMenuItem
//
this.editToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.CutHS;
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
this.editToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
this.editToolStripMenuItem.Text = "Edit";
//
// toggleToolStripMenuItem
//
this.toggleToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Refresh1;
this.toggleToolStripMenuItem.Name = "toggleToolStripMenuItem";
this.toggleToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
this.toggleToolStripMenuItem.Text = "Toggle";

View File

@ -291,6 +291,7 @@ namespace BizHawk.MultiClient
{
luaList.Remove(luaList[indexes[0]]); //index[0] used since each iteration will make this the correct list index
}
indexes.Clear();
DisplayLuaList();
}
}

View File

@ -501,6 +501,7 @@ namespace BizHawk.MultiClient
{
watchList.Remove(watchList[indexes[0]]); //index[0] used since each iteration will make this the correct list index
}
indexes.Clear();
DisplayWatchList();
}
}