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

(cherry picked from commit d164a70aa0)
This commit is contained in:
Haoyu Qiu
2025-09-11 20:07:30 +08:00
committed by lawnjelly
parent 639d133ff6
commit 9ca84aa900

View File

@ -6607,11 +6607,11 @@ EditorNode::EditorNode() {
p->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 (EditorSettings::get_singleton()->get_data_dir() == EditorSettings::get_singleton()->get_settings_dir()) {
// Configuration and data folders are located in the same place.
p->add_item(TTR("Open Editor Data/Settings Folder"), SETTINGS_EDITOR_DATA_FOLDER);
} else {
// Separate configuration and data folders (Linux)
// Separate configuration and data folders.
p->add_item(TTR("Open Editor Data Folder"), SETTINGS_EDITOR_DATA_FOLDER);
p->add_item(TTR("Open Editor Settings Folder"), SETTINGS_EDITOR_CONFIG_FOLDER);
}