Disable cheats hotkey
This commit is contained in:
parent
c956b5993b
commit
3f216fb4a4
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue