Fix "Open Project Data Folder" in the editor
The handling code also had to be moved as this option was moved to the Tools submenu.
This commit is contained in:
parent
ee5ba3e097
commit
2713b44da7
1 changed files with 3 additions and 4 deletions
|
@ -2287,10 +2287,6 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
||||||
|
|
||||||
project_settings->popup_project_settings();
|
project_settings->popup_project_settings();
|
||||||
} break;
|
} 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: {
|
case FILE_INSTALL_ANDROID_SOURCE: {
|
||||||
|
|
||||||
if (p_confirmed) {
|
if (p_confirmed) {
|
||||||
|
@ -2527,6 +2523,9 @@ void EditorNode::_tool_menu_option(int p_idx) {
|
||||||
case TOOLS_ORPHAN_RESOURCES: {
|
case TOOLS_ORPHAN_RESOURCES: {
|
||||||
orphan_resources->show();
|
orphan_resources->show();
|
||||||
} break;
|
} break;
|
||||||
|
case RUN_PROJECT_DATA_FOLDER: {
|
||||||
|
OS::get_singleton()->shell_open(String("file://") + OS::get_singleton()->get_user_data_dir());
|
||||||
|
} break;
|
||||||
case TOOLS_CUSTOM: {
|
case TOOLS_CUSTOM: {
|
||||||
if (tool_menu->get_item_submenu(p_idx) == "") {
|
if (tool_menu->get_item_submenu(p_idx) == "") {
|
||||||
Array params = tool_menu->get_item_metadata(p_idx);
|
Array params = tool_menu->get_item_metadata(p_idx);
|
||||||
|
|
Loading…
Reference in a new issue