Merge pull request #58 from llemoi/message_queue_ordering_fix

Fix the cross-thread message queue to actually act as a queue, not a stack
This commit is contained in:
Brendan Hagan
2023-01-14 21:16:10 -05:00
committed by GitHub
+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) {