LuaConsole - bump message count max to 100, clear count after using the command input box on the console

This commit is contained in:
adelikat 2020-07-02 12:33:41 -05:00
parent bb7f933429
commit fbbe3b6e40
1 changed files with 2 additions and 1 deletions

View File

@ -513,7 +513,7 @@ namespace BizHawk.Client.EmuHawk
private void WriteLine(string message) => WriteToOutputWindow(message + "\n");
private int _messageCount;
private const int MaxCount = 50;
private const int MaxCount = 100;
public void WriteToOutputWindow(string message)
{
if (!OutputBox.IsHandleCreated || OutputBox.IsDisposed)
@ -1470,6 +1470,7 @@ namespace BizHawk.Client.EmuHawk
});
});
_messageCount = 0;
_consoleCommandHistory.Insert(0, InputBox.Text);
_consoleCommandHistoryIndex = -1;
InputBox.Clear();