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

Improve messages related to overriding the default editor layout

This closes #33884.

(cherry picked from commit b324a929f6)
This commit is contained in:
Hugo Locurcio
2020-08-02 14:12:50 +02:00
committed by Rémi Verschelde
parent 84c04a8ee3
commit 12681b497b

View File

@@ -1679,7 +1679,7 @@ void EditorNode::_dialog_action(String p_file) {
if (err == ERR_FILE_CANT_OPEN || err == ERR_FILE_NOT_FOUND) {
config.instance(); // new config
} else if (err != OK) {
show_warning(TTR("Error trying to save layout!"));
show_warning(TTR("An error occurred while trying to save the editor layout.\nMake sure the editor's user data path is writable."));
return;
}
@@ -1691,7 +1691,7 @@ void EditorNode::_dialog_action(String p_file) {
_update_layouts_menu();
if (p_file == "Default") {
show_warning(TTR("Default editor layout overridden."));
show_warning(TTR("Default editor layout overridden.\nTo restore the Default layout to its base settings, use the Delete Layout option and delete the Default layout."));
}
} break;
@@ -1722,7 +1722,7 @@ void EditorNode::_dialog_action(String p_file) {
_update_layouts_menu();
if (p_file == "Default") {
show_warning(TTR("Restored default layout to base settings."));
show_warning(TTR("Restored the Default layout to its base settings."));
}
} break;