creater user-dir, if non-existant and pressing 'Open Project Data Folder'

(cherry picked from commit 8cf9d09d61)
This commit is contained in:
Leleat 2020-09-13 14:49:53 +02:00 committed by Rémi Verschelde
parent d6fecf7686
commit 5bda8fae38
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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: {