diff options
author | kobewi <kobewi4e@gmail.com> | 2024-09-18 15:16:42 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-09-18 15:16:42 +0200 |
commit | 8ab9205617a5783410ba9b2fff4daf74379c3989 (patch) | |
tree | 9133d8ac1f05797260479ab67b13fad675fffcd0 /editor/project_settings_editor.cpp | |
parent | 84dcdde9088d512efebb0033fb881d8f7fd9c107 (diff) | |
download | redot-engine-8ab9205617a5783410ba9b2fff4daf74379c3989.tar.gz |
Don't show project settings starting with underscore
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r-- | editor/project_settings_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<InputEvent> &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; |