From 116eb6dc5b7d84669caf962785476e7fa1dd4dd7 Mon Sep 17 00:00:00 2001 From: TJnotJT Date: Sat, 5 Jul 2025 17:43:23 -0400 Subject: [PATCH] Misc: Fix changing console log file. Console logging file should be updated whenever it is not equal to the old file. The test to check this was inverted. --- common/Console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Console.cpp b/common/Console.cpp index 2415181bf4..8c68611f51 100644 --- a/common/Console.cpp +++ b/common/Console.cpp @@ -335,7 +335,7 @@ bool Log::SetFileOutputLevel(LOGLEVEL level, std::string path) const bool was_enabled = (s_file_level > LOGLEVEL_NONE); const bool new_enabled = (level > LOGLEVEL_NONE && !path.empty()); - if (was_enabled != new_enabled || (new_enabled && path == s_file_path)) + if (was_enabled != new_enabled || (new_enabled && path != s_file_path)) { if (new_enabled) {