mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
LogWidget: Do not use QueueOnObject to construct log queue,
instead store a std::string constructed from string_view and convert to QString just before appending
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
|
||||
#include <mutex>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
|
||||
#include "Common/Logging/LogManager.h"
|
||||
|
||||
@ -46,6 +47,8 @@ private:
|
||||
|
||||
QTimer* m_timer;
|
||||
|
||||
using LogEntry = std::pair<std::string, LogTypes::LOG_LEVELS>;
|
||||
|
||||
std::mutex m_log_mutex;
|
||||
std::queue<QString> m_log_queue;
|
||||
std::queue<LogEntry> m_log_queue;
|
||||
};
|
||||
|
Reference in New Issue
Block a user