You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
creater user-dir, if non-existant and pressing 'Open Project Data Folder'
This commit is contained in:
@@ -2545,6 +2545,8 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
|||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case RUN_PROJECT_DATA_FOLDER: {
|
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());
|
OS::get_singleton()->shell_open(String("file://") + OS::get_singleton()->get_user_data_dir());
|
||||||
} break;
|
} break;
|
||||||
case FILE_EXPLORE_ANDROID_BUILD_TEMPLATES: {
|
case FILE_EXPLORE_ANDROID_BUILD_TEMPLATES: {
|
||||||
|
|||||||
Reference in New Issue
Block a user