diff options
author | Adam Scott <ascott.ca@gmail.com> | 2024-04-14 07:29:32 -0400 |
---|---|---|
committer | Adam Scott <ascott.ca@gmail.com> | 2024-04-14 11:36:07 -0400 |
commit | 38d8abea12269b421607818627a29ac3a9fec2af (patch) | |
tree | 24350ae55ffd7b4e8619253f083886c81a5610d5 /editor/editor_node.cpp | |
parent | 578d937927ea9735aa7a8e0535f57801406b0b82 (diff) | |
download | redot-engine-38d8abea12269b421607818627a29ac3a9fec2af.tar.gz |
Improve UX when saving newer files on disk
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4fb1a86ce2..1cad694591 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -7165,6 +7165,8 @@ EditorNode::EditorNode() { disk_changed = memnew(ConfirmationDialog); { + disk_changed->set_title(TTR("Files have been modified on disk")); + VBoxContainer *vbc = memnew(VBoxContainer); disk_changed->add_child(vbc); @@ -7178,9 +7180,9 @@ EditorNode::EditorNode() { disk_changed->connect("confirmed", callable_mp(this, &EditorNode::_reload_modified_scenes)); disk_changed->connect("confirmed", callable_mp(this, &EditorNode::_reload_project_settings)); - disk_changed->set_ok_button_text(TTR("Reload")); + disk_changed->set_ok_button_text(TTR("Discard local changes and reload")); - disk_changed->add_button(TTR("Resave"), !DisplayServer::get_singleton()->get_swap_cancel_ok(), "resave"); + disk_changed->add_button(TTR("Keep local changes and overwrite"), !DisplayServer::get_singleton()->get_swap_cancel_ok(), "resave"); disk_changed->connect("custom_action", callable_mp(this, &EditorNode::_resave_scenes)); } |