1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fix Open Editor Data/Settings Folder menu in self-contained mode

This commit is contained in:
Haoyu Qiu
2025-09-11 19:39:58 +08:00
parent 2dd26a027a
commit d61d70e8b9

View File

@@ -8224,11 +8224,11 @@ EditorNode::EditorNode() {
settings_menu->add_separator();
#ifndef ANDROID_ENABLED
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).
if (EditorPaths::get_singleton()->get_data_dir() == EditorPaths::get_singleton()->get_config_dir()) {
// Configuration and data folders are located in the same place.
settings_menu->add_item(TTRC("Open Editor Data/Settings Folder"), EDITOR_OPEN_DATA_FOLDER);
} else {
// Separate configuration and data folders (Linux).
// Separate configuration and data folders.
settings_menu->add_item(TTRC("Open Editor Data Folder"), EDITOR_OPEN_DATA_FOLDER);
settings_menu->add_item(TTRC("Open Editor Settings Folder"), EDITOR_OPEN_CONFIG_FOLDER);
}