summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-26 18:23:42 +0200
committerGitHub <noreply@github.com>2017-08-26 18:23:42 +0200
commit9d7945250e19e38f77498afab51067fd670b0ce2 (patch)
treefba8f0996cc7c2916ef1e1824a6d1d1cc842c99c /editor
parent2a1a1f05feadc8c9b2e6a3058940456b65c3ecdc (diff)
parentb92c210b8994f7ad469e5fae690d8de810ee6bce (diff)
Merge pull request #10649 from akien-mga/code-error-always-show
Code editor: Don't play hide and seek with error label
Diffstat (limited to 'editor')
-rw-r--r--editor/code_editor.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 889c750cf9..a9dc81dc54 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -1093,12 +1093,7 @@ void CodeTextEditor::update_editor_settings() {
void CodeTextEditor::set_error(const String &p_error) {
- if (p_error != "") {
- error->set_text(p_error);
- error->show();
- } else {
- error->hide();
- }
+ error->set_text(p_error);
}
void CodeTextEditor::_update_font() {
@@ -1223,7 +1218,6 @@ CodeTextEditor::CodeTextEditor() {
error = memnew(Label);
status_bar->add_child(error);
- error->hide();
error->set_clip_text(true); //do not change, or else very long errors can push the whole container to the right
error->set_valign(Label::VALIGN_CENTER);
error->add_color_override("font_color", Color(1, 0.7, 0.6, 0.9));