mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix error label clicking in status bar for shader editor
This commit is contained in:
parent
3f4e39e606
commit
25cb5a42e0
3 changed files with 1 additions and 8 deletions
|
@ -383,10 +383,6 @@ void ScriptTextEditor::_show_warnings_panel(bool p_show) {
|
|||
warnings_panel->set_visible(p_show);
|
||||
}
|
||||
|
||||
void ScriptTextEditor::_error_pressed() {
|
||||
code_editor->goto_error();
|
||||
}
|
||||
|
||||
void ScriptTextEditor::_warning_clicked(Variant p_line) {
|
||||
if (p_line.get_type() == Variant::INT) {
|
||||
code_editor->get_text_edit()->cursor_set_line(p_line.operator int64_t());
|
||||
|
@ -1759,7 +1755,6 @@ ScriptTextEditor::ScriptTextEditor() {
|
|||
warnings_panel->set_focus_mode(FOCUS_CLICK);
|
||||
warnings_panel->hide();
|
||||
|
||||
code_editor->connect("error_pressed", callable_mp(this, &ScriptTextEditor::_error_pressed));
|
||||
code_editor->connect("show_warnings_panel", callable_mp(this, &ScriptTextEditor::_show_warnings_panel));
|
||||
warnings_panel->connect("meta_clicked", callable_mp(this, &ScriptTextEditor::_warning_clicked));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue