diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-31 13:09:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 13:09:59 +0200 |
commit | 6889d4650a1bc45d69dbfd9793564fc1557dc076 (patch) | |
tree | e560975a6f0ed7a4b48c7336d2518e8c7a9ab585 /editor/editor_settings.cpp | |
parent | 0cee288c1147f0f719682c544ea21b13faddf347 (diff) | |
parent | f2dc0c68fde1beae692ec3c7b3204763e9e1df35 (diff) |
Merge pull request #10766 from poke1024/project-manager-dir
Adds default directory for default_project_path
Diffstat (limited to 'editor/editor_settings.cpp')
-rw-r--r-- | editor/editor_settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 2e692452cc..3bc85e8468 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -593,7 +593,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) { set("filesystem/directories/autoscan_project_path", ""); hints["filesystem/directories/autoscan_project_path"] = PropertyInfo(Variant::STRING, "filesystem/directories/autoscan_project_path", PROPERTY_HINT_GLOBAL_DIR); - set("filesystem/directories/default_project_path", ""); + set("filesystem/directories/default_project_path", OS::get_singleton()->has_environment("HOME") ? OS::get_singleton()->get_environment("HOME") : OS::get_singleton()->get_system_dir(OS::SYSTEM_DIR_DOCUMENTS)); hints["filesystem/directories/default_project_path"] = PropertyInfo(Variant::STRING, "filesystem/directories/default_project_path", PROPERTY_HINT_GLOBAL_DIR); set("filesystem/directories/default_project_export_path", ""); hints["global/default_project_export_path"] = PropertyInfo(Variant::STRING, "global/default_project_export_path", PROPERTY_HINT_GLOBAL_DIR); |