Disable cheats hotkey

This commit is contained in:
alyosha-tas 2019-10-21 14:18:25 -04:00
parent c956b5993b
commit 3f216fb4a4
2 changed files with 5 additions and 2 deletions

View File

@ -348,6 +348,8 @@
//
this.DisableAllCheatsMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Stop;
this.DisableAllCheatsMenuItem.Name = "DisableAllCheatsMenuItem";
this.DisableAllCheatsMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Back)));
this.DisableAllCheatsMenuItem.ShortcutKeyDisplayString = "Ctrl + Backspace";
this.DisableAllCheatsMenuItem.Size = new System.Drawing.Size(233, 22);
this.DisableAllCheatsMenuItem.Text = "Disable all";
this.DisableAllCheatsMenuItem.Click += new System.EventHandler(this.DisableAllCheatsMenuItem_Click);

View File

@ -446,7 +446,8 @@ namespace BizHawk.Client.EmuHawk
ToggleMenuItem.Enabled =
SelectedIndices.Any();
DisableAllCheatsMenuItem.Enabled = Global.CheatList.ActiveCount > 0;
// Always leave enabled even if no cheats enabled. This way the hotkey will always work however a new cheat is enabled
// DisableAllCheatsMenuItem.Enabled = Global.CheatList.ActiveCount > 0;
GameGenieSeparator.Visible =
OpenGameGenieEncoderDecoderMenuItem.Visible =
@ -553,7 +554,7 @@ namespace BizHawk.Client.EmuHawk
}
private void DisableAllCheatsMenuItem_Click(object sender, EventArgs e)
{
{
Global.CheatList.DisableAll();
}