summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-09-18 15:16:42 +0200
committerkobewi <kobewi4e@gmail.com>2024-09-18 15:16:42 +0200
commit8ab9205617a5783410ba9b2fff4daf74379c3989 (patch)
tree9133d8ac1f05797260479ab67b13fad675fffcd0 /editor/project_settings_editor.cpp
parent84dcdde9088d512efebb0033fb881d8f7fd9c107 (diff)
downloadredot-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.cpp2
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;