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

Show a confirmation for the revert action.

This commit is contained in:
Felix Laurie von Massenbach
2015-01-27 00:00:07 +00:00
parent ce488e1f93
commit 5e1e78b257

View File

@@ -1974,8 +1974,15 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) {
if (!scene)
break;
if (unsaved_cache && !p_confirmed) {
confirmation->get_ok()->set_text("Revert");
confirmation->set_text("This action cannot be undone. Revert anyway?");
confirmation->popup_centered(Size2(300,70));
break;
}
open_request(scene->get_filename());
Error err = load_scene(scene->get_filename());
} break;