summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorLeleat <atule@pm.me>2020-09-13 14:49:53 +0200
committerLeleat <atule@pm.me>2020-09-13 14:51:29 +0200
commit8cf9d09d6169f114bb78d93ede904a60ea74ddaf (patch)
tree3ca48d46603775fd6b44b364e506ed36b0d63644 /editor
parent43725691b917a76151f74a82c4be016ce9838f8a (diff)
creater user-dir, if non-existant and pressing 'Open Project Data Folder'
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 4835b4beab..3928078e38 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: {