Merge pull request #97145 from KoBeWi/supersecretsettings

Don't show project settings starting with underscore
This commit is contained in:
Rémi Verschelde 2024-09-19 17:13:43 +02:00
commit d427a60970
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ void ProjectSettingsEditor::shortcut_input(const Ref<InputEvent> &p_event) {
String ProjectSettingsEditor::_get_setting_name() const { String ProjectSettingsEditor::_get_setting_name() const {
String name = property_box->get_text().strip_edges(); String name = property_box->get_text().strip_edges();
if (!name.contains("/")) { if (!name.begins_with("_") && !name.contains("/")) {
name = "global/" + name; name = "global/" + name;
} }
return name; return name;