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.
This commit is contained in:
TJnotJT 2025-07-05 17:43:23 -04:00 committed by Ty
parent 0bab3c74ea
commit 116eb6dc5b
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{