You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fixed unable to open project data folder
Removed `default` case to prevent hiding such errors in the future. Fixes #31939.
This commit is contained in:
committed by
Rémi Verschelde
parent
084481b79d
commit
4d5298ed7d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user