diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-05 11:40:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 11:40:28 +0200 |
commit | 3676100964c79fe8ddf84e6baf35f73f2505a6d2 (patch) | |
tree | 06ac1d50a811f8f700726ae67d04d9039f95a3ec | |
parent | 343dcd9029d87002e7e0888913ff0caabc01a5e7 (diff) | |
parent | 44df7c8b9be425251d9e7fc5e40df7181c4f5172 (diff) |
Merge pull request #30336 from fire/open_project_data
Add editor menu to open the project data "user://" location.
-rw-r--r-- | editor/editor_node.cpp | 5 | ||||
-rw-r--r-- | editor/editor_node.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 9d3be1ab9e..1b29b6fd93 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2458,6 +2458,10 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { settings_config_dialog->popup_edit_settings(); } break; + case SETTINGS_USER_DATA_FOLDER: { + + OS::get_singleton()->shell_open(String("file://") + OS::get_singleton()->get_user_data_dir()); + } break; case SETTINGS_EDITOR_DATA_FOLDER: { OS::get_singleton()->shell_open(String("file://") + EditorSettings::get_singleton()->get_data_dir()); @@ -5951,6 +5955,7 @@ EditorNode::EditorNode() { #endif p->add_separator(); + p->add_item(TTR("Open User Data Folder"), SETTINGS_USER_DATA_FOLDER); if (OS::get_singleton()->get_data_path() == OS::get_singleton()->get_config_path()) { // Configuration and data folders are located in the same place (Windows/macOS) p->add_item(TTR("Open Editor Data/Settings Folder"), SETTINGS_EDITOR_DATA_FOLDER); diff --git a/editor/editor_node.h b/editor/editor_node.h index 733f29c8ff..c965869f2d 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -189,6 +189,7 @@ private: SETTINGS_LAYOUT_SAVE, SETTINGS_LAYOUT_DELETE, SETTINGS_LAYOUT_DEFAULT, + SETTINGS_USER_DATA_FOLDER, SETTINGS_EDITOR_DATA_FOLDER, SETTINGS_EDITOR_CONFIG_FOLDER, SETTINGS_MANAGE_EXPORT_TEMPLATES, |