diff --git a/src/common/log.cpp b/src/common/log.cpp index 2906618ec..47fb019dc 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -149,9 +149,9 @@ float Log::GetCurrentMessageTime() return static_cast(Timer::ConvertValueToSeconds(Timer::GetCurrentValue() - s_state.start_timestamp)); } -bool Log::AreTimestampsEnabled() +bool Log::AreConsoleOutputTimestampsEnabled() { - return s_state.console_output_timestamps || s_state.file_output_timestamp; + return s_state.console_output_timestamps; } bool Log::IsConsoleOutputCurrentlyAvailable() diff --git a/src/common/log.h b/src/common/log.h index 0d4f378cc..fc067a7b1 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -98,7 +98,7 @@ const std::array(Channel::MaxCount)>& GetChanne // returns the time in seconds since the start of the process float GetCurrentMessageTime(); -bool AreTimestampsEnabled(); +bool AreConsoleOutputTimestampsEnabled(); // adds a standard console output bool IsConsoleOutputCurrentlyAvailable(); diff --git a/src/duckstation-qt/logwindow.cpp b/src/duckstation-qt/logwindow.cpp index 61827fd62..ffa430ccd 100644 --- a/src/duckstation-qt/logwindow.cpp +++ b/src/duckstation-qt/logwindow.cpp @@ -411,7 +411,7 @@ void LogWindow::realAppendMessage(const QLatin1StringView& channel, quint32 cat, const size_t dark = static_cast(m_is_dark_theme); temp_cursor.beginEditBlock(); - if (Log::AreTimestampsEnabled()) + if (Log::AreConsoleOutputTimestampsEnabled()) { const float message_time = Log::GetCurrentMessageTime(); const QString qtimestamp = QStringLiteral("[%1] ").arg(message_time, 10, 'f', 4);