aboutsummaryrefslogtreecommitdiff
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-08-26 14:42:12 +0200
committerRémi Verschelde2017-08-26 14:43:20 +0200
commitb92c210b8994f7ad469e5fae690d8de810ee6bce (patch)
tree41259d9468bb5101d186643bbb6513534ea1859a /editor/code_editor.cpp
parentf634973acb711432fe50f8072416f30c8f92122b (diff)
downloadgodot-b92c210b8994f7ad469e5fae690d8de810ee6bce.tar.gz
godot-b92c210b8994f7ad469e5fae690d8de810ee6bce.tar.zst
godot-b92c210b8994f7ad469e5fae690d8de810ee6bce.zip
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r--editor/code_editor.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index d49b240c8..a9dc81dc5 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,12 +1218,10 @@ 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));
error->set_h_size_flags(SIZE_EXPAND_FILL); //required for it to display, given now it's clipping contents, do not touch
- //status_bar->add_spacer();
Label *line_txt = memnew(Label);
status_bar->add_child(line_txt);