Bugfix for log console.

Console type should not be changed by user when console is shown.
This commit is contained in:
taotao54321 2012-03-09 21:36:55 +00:00
parent b207c81fea
commit 7613d51ea2
3 changed files with 19 additions and 4 deletions

View File

@ -271,6 +271,7 @@ namespace BizHawk.MultiClient
if (NeedToRelease)
{
ReleaseConsole();
NeedToRelease = false;
}
else
{

View File

@ -972,9 +972,9 @@ namespace BizHawk.MultiClient
Global.Config.ShowLogWindow ^= true;
displayLogWindowToolStripMenuItem.Checked = Global.Config.ShowLogWindow;
if (Global.Config.ShowLogWindow)
LogConsole.ShowConsole();
ShowConsole();
else
LogConsole.HideConsole();
HideConsole();
}
private void PauseStrip_Click(object sender, EventArgs e)
@ -1426,4 +1426,4 @@ namespace BizHawk.MultiClient
ShowHideMenu();
}
}
}
}

View File

@ -75,7 +75,7 @@ namespace BizHawk.MultiClient
Global.Game = GameInfo.GetNullGame();
if (Global.Config.ShowLogWindow)
{
LogConsole.ShowConsole();
ShowConsole();
//PsxApi.StdioFixes();
displayLogWindowToolStripMenuItem.Checked = true;
}
@ -2728,9 +2728,23 @@ namespace BizHawk.MultiClient
{
Global.Config.SkipLagFrame ^= true;
}
private void ShowConsole()
{
LogConsole.ShowConsole();
logWindowAsConsoleToolStripMenuItem.Enabled = false;
}
private void HideConsole()
{
LogConsole.HideConsole();
logWindowAsConsoleToolStripMenuItem.Enabled = true;
}
public void notifyLogWindowClosing()
{
displayLogWindowToolStripMenuItem.Checked = false;
logWindowAsConsoleToolStripMenuItem.Enabled = true;
}
}
}