1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Defer the call to 'popup_str' to the next cycle to let Godot Engine's editor time to properly start

This commit is contained in:
Xavier Sellier
2021-12-14 13:42:46 +01:00
parent 15aea89868
commit ba0abd399f
3 changed files with 21 additions and 5 deletions

View File

@@ -37,9 +37,16 @@
static ErrorHandlerList *error_handler_list = nullptr;
void add_error_handler(ErrorHandlerList *p_handler) {
// If p_handler is already in error_handler_list
// we'd better remove it first then we can add it.
// This prevent cyclic redundancy.
remove_error_handler(p_handler);
_global_lock();
p_handler->next = error_handler_list;
error_handler_list = p_handler;
_global_unlock();
}