fix snes graphics debugger getting permanently hidden (til app is restarted) when choosing new bsnesv115+ core. fixes #2950

This commit is contained in:
zeromus 2021-10-03 00:09:23 -04:00
parent 02f23692cf
commit b14c434377
1 changed files with 3 additions and 1 deletions

View File

@ -2004,14 +2004,16 @@ namespace BizHawk.Client.EmuHawk
case "SNES" when Emulator is LibsnesCore { IsSGB: true }: // doesn't use "SGB" sysID
SNESSubMenu.Text = "&SGB";
SNESSubMenu.Visible = true;
SnesGfxDebuggerMenuItem.Visible = true;
break;
case "SNES" when Emulator is LibsnesCore { IsSGB: false }:
SNESSubMenu.Text = "&SNES";
SNESSubMenu.Visible = true;
SnesGfxDebuggerMenuItem.Visible = true;
break;
case "SNES" when Emulator is BsnesCore bsnesCore:
SNESSubMenu.Text = bsnesCore.IsSGB ? "&SGB" : "&SNES";
SNESSubMenu.DropDownItems[2].Visible = false;
SnesGfxDebuggerMenuItem.Visible = false;
SNESSubMenu.Visible = true;
break;
default: