From 5e45717be7a25e2efef22ebdae80d62397cbfc7f Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sun, 5 Apr 2020 00:08:53 -0300 Subject: [PATCH] Remove unnecessary Panel in "Features" section in the Export dialog (cherry picked from commit a1a096eb09d8f8c9ecf2492f4d9725d170d1b237) --- editor/project_export.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/editor/project_export.cpp b/editor/project_export.cpp index 8245264e0d4..de7d2d4b566 100644 --- a/editor/project_export.cpp +++ b/editor/project_export.cpp @@ -1221,12 +1221,9 @@ ProjectExportDialog::ProjectExportDialog() { custom_features = memnew(LineEdit); custom_features->connect("text_changed", this, "_custom_features_changed"); feature_vb->add_margin_child(TTR("Custom (comma-separated):"), custom_features); - Panel *features_panel = memnew(Panel); custom_feature_display = memnew(RichTextLabel); - features_panel->add_child(custom_feature_display); - custom_feature_display->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 10 * EDSCALE); - custom_feature_display->set_v_size_flags(SIZE_EXPAND_FILL); - feature_vb->add_margin_child(TTR("Feature List:"), features_panel, true); + custom_feature_display->set_v_size_flags(Control::SIZE_EXPAND_FILL); + feature_vb->add_margin_child(TTR("Feature List:"), custom_feature_display, true); sections->add_child(feature_vb); // Script export parameters.