1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Fix error label clicking in status bar for shader editor

(cherry picked from commit 25cb5a42e0)
This commit is contained in:
Yuri Roubinsky
2020-06-23 10:59:43 +03:00
committed by Rémi Verschelde
parent 0f30fa8fbd
commit 5be4e10f4e
3 changed files with 1 additions and 9 deletions

View File

@@ -1561,7 +1561,7 @@ void CodeTextEditor::_toggle_scripts_pressed() {
void CodeTextEditor::_error_pressed(const Ref<InputEvent> &p_event) {
Ref<InputEventMouseButton> mb = p_event;
if (mb.is_valid() && mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT) {
emit_signal("error_pressed");
goto_error();
}
}
@@ -1688,7 +1688,6 @@ void CodeTextEditor::_bind_methods() {
ADD_SIGNAL(MethodInfo("validate_script"));
ADD_SIGNAL(MethodInfo("load_theme_settings"));
ADD_SIGNAL(MethodInfo("show_warnings_panel"));
ADD_SIGNAL(MethodInfo("error_pressed"));
}
void CodeTextEditor::set_code_complete_func(CodeTextEditorCodeCompleteFunc p_code_complete_func, void *p_ud) {