Make log window actually work

Fix formatting on log output, so it can be properly displayed in the Console Window
This commit is contained in:
2023-08-02 19:06:06 +02:00
parent e25fc82994
commit 7bd7297e69
8 changed files with 280 additions and 256 deletions

View File

@@ -22,17 +22,8 @@ namespace WolfLauncher.gui.launcher
this.Text = String.Format("{0} - {1} - {2}", "Console window for " + ins.name, LauncherConstants.LauncherName, LauncherConstants.Version);
}
private void wrapLines_CheckedChanged(object sender, EventArgs e)
{
// Apply wordwrapping based on checkbox
logWindow.WordWrap = wrapLines.Checked;
}
private void InstanceWindow_Load(object sender, EventArgs e)
{
// Setup default values
logWindow.WordWrap = wrapLines.Checked;
// Load log from logger if it exists
LauncherLogger.INSTANCE.logWindow = this.logWindow;
LauncherLogger.INSTANCE.loadLog(instance);
@@ -42,7 +33,7 @@ namespace WolfLauncher.gui.launcher
private void clearLog_Click(object sender, EventArgs e)
{
// Clear the log
logWindow.Clear();
logWindow.ClearOutput();
LauncherLogger.INSTANCE.clearLog();
}