From 8ab9205617a5783410ba9b2fff4daf74379c3989 Mon Sep 17 00:00:00 2001 From: kobewi Date: Wed, 18 Sep 2024 15:16:42 +0200 Subject: Don't show project settings starting with underscore --- editor/project_settings_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/project_settings_editor.cpp') diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 489fbb037f..3ad1ad1899 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -267,7 +267,7 @@ void ProjectSettingsEditor::shortcut_input(const Ref &p_event) { String ProjectSettingsEditor::_get_setting_name() const { String name = property_box->get_text().strip_edges(); - if (!name.contains("/")) { + if (!name.begins_with("_") && !name.contains("/")) { name = "global/" + name; } return name; -- cgit v1.2.3