summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2019-05-18 16:39:32 +0200
committerGitHub <noreply@github.com>2019-05-18 16:39:32 +0200
commita1c7fdb58b3f26e06d8a34bedad36adf3210c429 (patch)
treeae6d267f49bf6068ea63b6289e6b93f77b2319ee
parentee5ba3e0974caba3e3589d2a53405ef7328dc1b1 (diff)
parent2713b44da78a58ddf2cf679c2cbf071fbc64b341 (diff)
Merge pull request #28983 from Calinou/fix-open-project-data-folder
Fix "Open Project Data Folder" in the editor
-rw-r--r--editor/editor_node.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 40e05940a7..8a1a9351cc 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -2287,10 +2287,6 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
project_settings->popup_project_settings();
} break;
- case RUN_PROJECT_DATA_FOLDER: {
-
- OS::get_singleton()->shell_open(String("file://") + OS::get_singleton()->get_user_data_dir());
- } break;
case FILE_INSTALL_ANDROID_SOURCE: {
if (p_confirmed) {
@@ -2527,6 +2523,9 @@ 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);