Replace ClientApi event sub with direct call in MainForm
This commit is contained in:
parent
781976f18e
commit
0e2d35d6aa
|
@ -3764,6 +3764,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
ExternalToolManager.BuildToolStrip();
|
||||
|
||||
EmuClient.OnRomLoaded(Emulator);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -38,15 +38,13 @@ namespace BizHawk.Client.EmuHawk
|
|||
DirectoryMonitor.Created += DirectoryMonitor_Created;
|
||||
DirectoryMonitor.EnableRaisingEvents = true;
|
||||
|
||||
ClientApi.RomLoaded += (sender, e) => BuildToolStrip();
|
||||
|
||||
BuildToolStrip();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Build the ToolStrip menu
|
||||
/// </summary>
|
||||
private static void BuildToolStrip()
|
||||
internal static void BuildToolStrip()
|
||||
{
|
||||
MenuItems.Clear();
|
||||
if (Directory.Exists(DirectoryMonitor.Path))
|
||||
|
|
Loading…
Reference in New Issue