mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 17:33:33 +00:00
Hide the warnings panel when no warnings presents.
This commit is contained in:
parent
8fd6a02d3e
commit
0137ec3468
4 changed files with 18 additions and 7 deletions
|
@ -273,8 +273,8 @@ void ScriptTextEditor::_set_theme_for_script() {
|
|||
}
|
||||
}
|
||||
|
||||
void ScriptTextEditor::_toggle_warning_pannel() {
|
||||
warnings_panel->set_visible(!warnings_panel->is_visible());
|
||||
void ScriptTextEditor::_show_warnings_panel(bool p_show) {
|
||||
warnings_panel->set_visible(p_show);
|
||||
}
|
||||
|
||||
void ScriptTextEditor::_error_pressed() {
|
||||
|
@ -1101,7 +1101,7 @@ void ScriptTextEditor::_bind_methods() {
|
|||
ClassDB::bind_method("_goto_line", &ScriptTextEditor::_goto_line);
|
||||
ClassDB::bind_method("_lookup_symbol", &ScriptTextEditor::_lookup_symbol);
|
||||
ClassDB::bind_method("_text_edit_gui_input", &ScriptTextEditor::_text_edit_gui_input);
|
||||
ClassDB::bind_method("_toggle_warning_pannel", &ScriptTextEditor::_toggle_warning_pannel);
|
||||
ClassDB::bind_method("_show_warnings_panel", &ScriptTextEditor::_show_warnings_panel);
|
||||
ClassDB::bind_method("_error_pressed", &ScriptTextEditor::_error_pressed);
|
||||
ClassDB::bind_method("_warning_clicked", &ScriptTextEditor::_warning_clicked);
|
||||
ClassDB::bind_method("_color_changed", &ScriptTextEditor::_color_changed);
|
||||
|
@ -1440,7 +1440,7 @@ ScriptTextEditor::ScriptTextEditor() {
|
|||
warnings_panel->hide();
|
||||
|
||||
code_editor->connect("error_pressed", this, "_error_pressed");
|
||||
code_editor->connect("warning_pressed", this, "_toggle_warning_pannel");
|
||||
code_editor->connect("show_warnings_panel", this, "_show_warnings_panel");
|
||||
warnings_panel->connect("meta_clicked", this, "_warning_clicked");
|
||||
|
||||
update_settings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue