Godot Engine – Multi-platform 2D and 3D game engine
Fix error and warning count on debugger toggle button.
BigFriendlyGeek42da899e733ce0
diff --git a/editor/debugger/editor_debugger_node.cpp b/editor/debugger/editor_debugger_node.cppindex 80413989df0..c69de2250fc 100644--- a/editor/debugger/editor_debugger_node.cpp+++ b/editor/debugger/editor_debugger_node.cpp@@ -492,8 +492,10 @@ void EditorDebuggerNode::_update_errors(bool p_force) {int error_count = 0;int warning_count = 0;_for_all(tabs, [&](ScriptEditorDebugger *dbg) {- error_count += dbg->get_error_count();- warning_count += dbg->get_warning_count();+ if (dbg->is_session_active()) {+ error_count += dbg->get_error_count();+ warning_count += dbg->get_warning_count();+ }});if (p_force || error_count != last_error_count || warning_count != last_warning_count) {