mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Merge pull request #56289 from zacryol/clarify-user-data
This commit is contained in:
commit
4e83fbcd14
@ -2780,8 +2780,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;
|
||||
@ -6446,7 +6446,7 @@ EditorNode::EditorNode() {
|
||||
p->add_separator();
|
||||
p->add_shortcut(ED_SHORTCUT_AND_COMMAND("editor/export", TTR("Export..."), Key::NONE, 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", callable_mp(this, &EditorNode::_on_plugin_ready));
|
||||
|
@ -167,7 +167,7 @@ private:
|
||||
RUN_PLAY_SCENE,
|
||||
RUN_PLAY_CUSTOM_SCENE,
|
||||
RUN_SETTINGS,
|
||||
RUN_PROJECT_DATA_FOLDER,
|
||||
RUN_USER_DATA_FOLDER,
|
||||
RUN_RELOAD_CURRENT_PROJECT,
|
||||
RUN_PROJECT_MANAGER,
|
||||
RUN_VCS_METADATA,
|
||||
|
Loading…
Reference in New Issue
Block a user