Fix log not cleared on log toggle.
This commit is contained in:
@@ -341,6 +341,7 @@ namespace Cryville.Crtr {
|
|||||||
public void ToggleLogs() {
|
public void ToggleLogs() {
|
||||||
logEntries.Clear();
|
logEntries.Clear();
|
||||||
logsLength = 0;
|
logsLength = 0;
|
||||||
|
logs.text = "";
|
||||||
status.SetText("");
|
status.SetText("");
|
||||||
logEnabled = !logEnabled;
|
logEnabled = !logEnabled;
|
||||||
}
|
}
|
||||||
@@ -470,6 +471,7 @@ namespace Cryville.Crtr {
|
|||||||
logEntries.Clear();
|
logEntries.Clear();
|
||||||
logsLength = 0;
|
logsLength = 0;
|
||||||
Game.MainLogger.Enumerate((level, module, msg) => { });
|
Game.MainLogger.Enumerate((level, module, msg) => { });
|
||||||
|
logs.text = "";
|
||||||
}
|
}
|
||||||
Game.AudioSequencer.Playing = true;
|
Game.AudioSequencer.Playing = true;
|
||||||
atime0 = Game.AudioClient.BufferPosition;
|
atime0 = Game.AudioClient.BufferPosition;
|
||||||
|
|||||||
Reference in New Issue
Block a user