diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-24 15:21:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 15:21:01 +0200 |
commit | 4b3a566cf1e46bbb9057fa5e89760a1caca4ee14 (patch) | |
tree | f2f3a45368ccb6a4927d51c9c64490cd64677d0d /editor | |
parent | 915ac7360a70904a4ee4294fd8b53ce2c757ee95 (diff) | |
parent | 8cf9d09d6169f114bb78d93ede904a60ea74ddaf (diff) |
Merge pull request #42018 from Leleat/create-user-dir-if-nonexistant
Create user-dir, if non-existant, so it can be opened with Godot
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 3a52657862..8edda3123b 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2545,6 +2545,8 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { } } break; case RUN_PROJECT_DATA_FOLDER: { + // ensure_user_data_dir() to prevent the edge case: "Open Project Data Folder" won't work after the project was renamed in ProjectSettingsEditor unless the project is saved + OS::get_singleton()->ensure_user_data_dir(); OS::get_singleton()->shell_open(String("file://") + OS::get_singleton()->get_user_data_dir()); } break; case FILE_EXPLORE_ANDROID_BUILD_TEMPLATES: { |