diff options
author | Ruslan Mullayanov <mullruslan@yandex.ru> | 2019-09-04 22:46:12 +0500 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-26 08:17:07 +0200 |
commit | 4d5298ed7db5972c0a0f9fa11f07c8840b62ce52 (patch) | |
tree | 02784eacfbb3a17d70b7ef29d3f7def27db4a051 | |
parent | 084481b79da1515e2acd9be68e13aec67e35e80b (diff) |
Fixed unable to open project data folder
Removed `default` case to prevent hiding such errors in the future.
Fixes #31939.
-rw-r--r-- | editor/editor_node.cpp | 8 |
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); |