From 6fc587a6e572fac9861c3f47f669abc737ccdba7 Mon Sep 17 00:00:00 2001 From: zacryol <60046681+zacryol@users.noreply.github.com> Date: Mon, 27 Dec 2021 17:51:45 -0700 Subject: [PATCH] Reword "Open Project Data Folder" as "Open User Data Folder" Clarifies that the button opens the user:// dir and for better consistency with certain ProjectSettings values: "Use Hidden Project Data Directory" is named similarly, but refers to data within res:// and two values refer to user:// as "User Dir" (Translations were not updated) and rename enum value accordingly (cherry picked from commit 54018e40214d1ccf0294d15cd6d5a35fe8bc05c3) --- editor/editor_node.cpp | 6 +++--- editor/editor_node.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4d2e52a0bbf..3b03e632f50 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2665,8 +2665,8 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { } } } break; - case RUN_PROJECT_DATA_FOLDER: { - // ensure_user_data_dir() to prevent the edge case: "Open Project Data Folder" won't work after the project was renamed in ProjectSettingsEditor unless the project is saved + case RUN_USER_DATA_FOLDER: { + // ensure_user_data_dir() to prevent the edge case: "Open User Data Folder" won't work after the project was renamed in ProjectSettingsEditor unless the project is saved OS::get_singleton()->ensure_user_data_dir(); OS::get_singleton()->shell_open(String("file://") + OS::get_singleton()->get_user_data_dir()); } break; @@ -6333,7 +6333,7 @@ EditorNode::EditorNode() { p->add_separator(); p->add_shortcut(ED_SHORTCUT("editor/export", TTR("Export...")), FILE_EXPORT_PROJECT); p->add_item(TTR("Install Android Build Template..."), FILE_INSTALL_ANDROID_SOURCE); - p->add_item(TTR("Open Project Data Folder"), RUN_PROJECT_DATA_FOLDER); + p->add_item(TTR("Open User Data Folder"), RUN_USER_DATA_FOLDER); plugin_config_dialog = memnew(PluginConfigDialog); plugin_config_dialog->connect("plugin_ready", this, "_on_plugin_ready"); diff --git a/editor/editor_node.h b/editor/editor_node.h index 50356132fbd..2b714c746f1 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -163,7 +163,7 @@ private: RUN_PLAY_CUSTOM_SCENE, RUN_SCENE_SETTINGS, RUN_SETTINGS, - RUN_PROJECT_DATA_FOLDER, + RUN_USER_DATA_FOLDER, RUN_RELOAD_CURRENT_PROJECT, RUN_PROJECT_MANAGER, RUN_FILE_SERVER,