summaryrefslogtreecommitdiff
path: root/editor/groups_editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/groups_editor.cpp')
-rw-r--r--editor/groups_editor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp
index f01c7f50f7..788c7dc029 100644
--- a/editor/groups_editor.cpp
+++ b/editor/groups_editor.cpp
@@ -227,7 +227,7 @@ void GroupDialog::_group_renamed() {
}
}
- if (name == "") {
+ if (name.is_empty()) {
renamed_group->set_text(0, selected_group);
error->set_text(TTR("Invalid group name."));
error->popup_centered();
@@ -544,8 +544,8 @@ GroupDialog::GroupDialog() {
group_empty->set_theme_type_variation("HeaderSmall");
group_empty->set_text(TTR("Empty groups will be automatically removed."));
- group_empty->set_valign(Label::VALIGN_CENTER);
- group_empty->set_align(Label::ALIGN_CENTER);
+ group_empty->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
+ group_empty->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
group_empty->set_autowrap_mode(Label::AUTOWRAP_WORD_SMART);
group_empty->set_custom_minimum_size(Size2(100 * EDSCALE, 0));
nodes_to_remove->add_child(group_empty);