Fix the cross-thread message queue to actually act as a queue, not a stack

This commit is contained in:
Luke Le Moignan
2022-12-31 10:01:33 +00:00
parent 2770b07668
commit 4d6954eaa8
+1 -1
View File
@@ -176,7 +176,7 @@ void queue_message(MessageType type, String const& msg) {
// Thread safety // Thread safety
wxMutexLocker lock(crit_error_handling); wxMutexLocker lock(crit_error_handling);
// Only show errors in the main thread // Only show errors in the main thread
message_queue.push_back(make_pair(type,msg)); message_queue.push_front(make_pair(type,msg));
} }
void handle_error(const Error& e) { void handle_error(const Error& e) {