Toolbox - reload icons on rom open/close so that core dependent tools update.

This commit is contained in:
andres.delikat 2012-01-10 02:11:17 +00:00
parent c871eedbbc
commit d6a57e08c1
2 changed files with 15 additions and 4 deletions

View File

@ -1134,8 +1134,9 @@ namespace BizHawk.MultiClient
NESDebug1.Restart();
TI83KeyPad1.Restart();
TAStudio1.Restart();
Cheats1.Restart();
ToolBox1.Restart();
if (Global.Config.LoadCheatFileByGame)
{
if (Global.CheatList.AttemptLoadCheatFile())
@ -2188,6 +2189,7 @@ namespace BizHawk.MultiClient
NESDebug1.Restart();
TI83KeyPad1.Restart();
Cheats1.Restart();
ToolBox1.Restart();
Text = "BizHawk" + (INTERIM ? " (interim) " : "");
HandlePlatformMenus();
StateSlots.Clear();

View File

@ -24,7 +24,16 @@ namespace BizHawk.MultiClient
int x = Global.MainForm.Location.X + Global.MainForm.Size.Width;
int y = Global.MainForm.Location.Y;
Location = new Point(x, y);
HideShowIcons();
}
public void Restart()
{
HideShowIcons();
}
private void HideShowIcons()
{
if (Global.Emulator is NES)
{
NESPPU.Visible = true;