Settings: Default console logging to running from TTY

This commit is contained in:
Stenzek
2024-09-09 20:55:15 +10:00
parent fe9d06a194
commit d1770b616f
7 changed files with 26 additions and 17 deletions

View File

@ -472,11 +472,8 @@ bool QtHost::InitializeConfig(std::string settings_filename)
MigrateSettings();
// We need to create the console window early, otherwise it appears in front of the main window.
if (!Log::IsConsoleOutputEnabled() &&
s_base_settings_interface->GetBoolValue("Logging", "LogToConsole", Settings::DEFAULT_LOG_TO_CONSOLE))
{
if (!Log::IsConsoleOutputEnabled() && s_base_settings_interface->GetBoolValue("Logging", "LogToConsole", false))
Log::SetConsoleOutputParams(true, s_base_settings_interface->GetBoolValue("Logging", "LogTimestamps", true));
}
UpdateApplicationLanguage(nullptr);
return true;