فهرست منبع

Merge pull request #104169 from CreatedBySeb/fix-error-panel-hiding

Fix error panel auto-hiding
Thaddeus Crews 3 ماه پیش
والد
کامیت
a26c05d7e5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      editor/code_editor.cpp

+ 1 - 1
editor/code_editor.cpp

@@ -1688,9 +1688,9 @@ void CodeTextEditor::set_error_count(int p_error_count) {
 	error_button->set_text(itos(p_error_count));
 	error_button->set_text(itos(p_error_count));
 	error_button->set_visible(p_error_count > 0);
 	error_button->set_visible(p_error_count > 0);
 	if (p_error_count > 0) {
 	if (p_error_count > 0) {
-		_set_show_errors_panel(false);
 		idle->set_wait_time(idle_time_with_errors); // Parsing should happen sooner.
 		idle->set_wait_time(idle_time_with_errors); // Parsing should happen sooner.
 	} else {
 	} else {
+		_set_show_errors_panel(false);
 		idle->set_wait_time(idle_time);
 		idle->set_wait_time(idle_time);
 	}
 	}
 }
 }