diff options
author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2019-07-05 00:38:19 -0700 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2019-07-05 01:07:11 -0700 |
commit | 44df7c8b9be425251d9e7fc5e40df7181c4f5172 (patch) | |
tree | 4b889d1e2c43d20816419f70ac3dba72ec8c52aa /editor/editor_node.cpp | |
parent | 42a0148f1799b82cc4b07de6ca5a1e66d6a76be2 (diff) |
Add editor menu to open the project data "user://" location.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index d9600172d7..e3708b4d73 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()); @@ -5944,6 +5948,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); |