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 authored and Ty committed 2025-07-30 12:10:04 -04:00
1 parent 0bab3c74ea
commit 116eb6dc5b
1 file changed
+1 -1
+1 -1
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)
{