Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844
This commit is contained in:
parent
928efe06d6
commit
3d87b70f7a
19 changed files with 81 additions and 48 deletions
|
|
@ -72,7 +72,7 @@ void GDNativeLibraryEditor::_update_libraries() {
|
|||
libraries->create_item(); //rppt
|
||||
|
||||
Vector<String> enabled_paths;
|
||||
if (ProjectSettings::get_singleton()->has("gdnative/singletons")) {
|
||||
if (ProjectSettings::get_singleton()->has_setting("gdnative/singletons")) {
|
||||
enabled_paths = ProjectSettings::get_singleton()->get("gdnative/singletons");
|
||||
}
|
||||
Set<String> enabled_list;
|
||||
|
|
@ -100,7 +100,7 @@ void GDNativeLibraryEditor::_item_edited() {
|
|||
String path = item->get_metadata(0);
|
||||
|
||||
Vector<String> enabled_paths;
|
||||
if (ProjectSettings::get_singleton()->has("gdnative/singletons")) {
|
||||
if (ProjectSettings::get_singleton()->has_setting("gdnative/singletons")) {
|
||||
enabled_paths = ProjectSettings::get_singleton()->get("gdnative/singletons");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue