summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-26 10:11:19 +0200
committerGitHub <noreply@github.com>2019-09-26 10:11:19 +0200
commit452741f33329e1827c31b0eb69f15e7bf8cc35fa (patch)
tree663090a624d0c266a37c29ff9226834a82993c70
parent8a89434acf2fcd55cee77eb3e8f9b8901dbdfa38 (diff)
parent4d5298ed7db5972c0a0f9fa11f07c8840b62ce52 (diff)
Merge pull request #31969 from NNesh/fix/open-proj-data-folder
Fixed unable to open project data folder
-rw-r--r--editor/editor_node.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index df1e8005ed..05b50d5dfe 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -2365,6 +2365,9 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
}
}
} break;
+ case RUN_PROJECT_DATA_FOLDER: {
+ OS::get_singleton()->shell_open(String("file://") + OS::get_singleton()->get_user_data_dir());
+ } break;
case FILE_EXPLORE_ANDROID_BUILD_TEMPLATES: {
OS::get_singleton()->shell_open("file://" + ProjectSettings::get_singleton()->get_resource_path().plus_file("android"));
} break;
@@ -2571,8 +2574,6 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
save_all_scenes();
restart_editor();
} break;
- default: {
- }
}
}
@@ -2605,9 +2606,6 @@ void EditorNode::_tool_menu_option(int p_idx) {
case TOOLS_ORPHAN_RESOURCES: {
orphan_resources->show();
} break;
- case RUN_PROJECT_DATA_FOLDER: {
- OS::get_singleton()->shell_open(String("file://") + OS::get_singleton()->get_user_data_dir());
- } break;
case TOOLS_CUSTOM: {
if (tool_menu->get_item_submenu(p_idx) == "") {
Array params = tool_menu->get_item_metadata(p_idx);