Translate main thread name in the editor instead of running project

This commit is contained in:
Haoyu Qiu 2024-10-18 23:49:20 +08:00
parent f2cc3f1275
commit 513dbff72b
2 changed files with 5 additions and 2 deletions

View file

@ -419,7 +419,7 @@ void RemoteDebugger::debug(bool p_can_continue, bool p_is_error_breakpoint) {
msg.push_back(error_str);
ERR_FAIL_NULL(script_lang);
msg.push_back(script_lang->debug_get_stack_level_count() > 0);
msg.push_back(Thread::get_caller_id() == Thread::get_main_id() ? String(RTR("Main Thread")) : itos(Thread::get_caller_id()));
msg.push_back(Thread::get_caller_id());
if (allow_focus_steal_fn) {
allow_focus_steal_fn();
}