Application::CheckForUpdates: only print status the first time

This commit is contained in:
Lion Kortlepel
2022-04-28 13:32:38 +02:00
parent 668cc496b6
commit 5ded713b4b
2 changed files with 16 additions and 9 deletions

View File

@@ -111,7 +111,6 @@ void TConsole::StartLoggingToFile() {
// sanitize the string by removing all ANSI control codes (like color, etc)
std::string Sanitized;
Sanitized.reserve(ToWrite.size());
EscState state;
for (size_t i = 0; i < ToWrite.size(); ++i) {
if (i + 1 < ToWrite.size()
&& ToWrite[i] == 0x1b) { // starts ANSI escape sequence