Skip to content

Commit

Permalink
creater user-dir, if non-existant and pressing 'Open Project Data Fol…
Browse files Browse the repository at this point in the history
…der'

(cherry picked from commit 8cf9d09)
  • Loading branch information
Leleat authored and akien-mga committed Jan 8, 2021
1 parent d6fecf7 commit 5bda8fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2594,6 +2594,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: {
Expand Down

0 comments on commit 5bda8fa

Please sign in to comment.