mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
Merge pull request #97145 from KoBeWi/supersecretsettings
Don't show project settings starting with underscore
This commit is contained in:
commit
d427a60970
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user