Show placeholder for VSystem menu when no rom loaded
This commit is contained in:
parent
f92565549c
commit
6049d5e4f5
|
@ -1437,6 +1437,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
var i = GenericCoreSubMenu.Text.IndexOf('&');
|
||||
if (i != -1) AvailableAccelerators.Add(GenericCoreSubMenu.Text[i + 1]);
|
||||
}
|
||||
NullHawkVSysSubmenu.Visible = false;
|
||||
GenericCoreSubMenu.Visible = false;
|
||||
TI83SubMenu.Visible = false;
|
||||
NESSubMenu.Visible = false;
|
||||
|
@ -1458,6 +1459,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
switch (sysID)
|
||||
{
|
||||
case VSystemID.Raw.NULL:
|
||||
NullHawkVSysSubmenu.Visible = true;
|
||||
break;
|
||||
case VSystemID.Raw.A78:
|
||||
A7800SubMenu.Visible = true;
|
||||
|
|
|
@ -56,6 +56,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private const int WINDOW_SCALE_MAX = 10;
|
||||
|
||||
private readonly ToolStripMenuItemEx NullHawkVSysSubmenu = new() { Enabled = false, Text = "—" };
|
||||
|
||||
private void MainForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
UpdateWindowTitle();
|
||||
|
@ -164,6 +166,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
Text = "Core Settings",
|
||||
});
|
||||
|
||||
MainformMenu.Items.Insert(MainformMenu.Items.IndexOf(ToolsSubMenu) + 1, NullHawkVSysSubmenu);
|
||||
|
||||
// Hide Status bar icons and general StatusBar prep
|
||||
MainStatusBar.Padding = new Padding(MainStatusBar.Padding.Left, MainStatusBar.Padding.Top, MainStatusBar.Padding.Left, MainStatusBar.Padding.Bottom); // Workaround to remove extra padding on right
|
||||
PlayRecordStatusButton.Visible = false;
|
||||
|
|
Loading…
Reference in New Issue