You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Remove unnecessary "OK"s text settings
This commit is contained in:
@@ -4917,7 +4917,6 @@ void CanvasItemEditorViewport::_perform_drop_data() {
|
||||
|
||||
// Without root dropping multiple files is not allowed
|
||||
if (!target_node && selected_files.size() > 1) {
|
||||
accept->get_ok()->set_text(TTR("Ok"));
|
||||
accept->set_text(TTR("Cannot instantiate multiple nodes without root."));
|
||||
accept->popup_centered_minsize();
|
||||
return;
|
||||
@@ -4979,7 +4978,6 @@ void CanvasItemEditorViewport::_perform_drop_data() {
|
||||
files_str += error_files[i].get_file().get_basename() + ",";
|
||||
}
|
||||
files_str = files_str.substr(0, files_str.length() - 1);
|
||||
accept->get_ok()->set_text(TTR("OK"));
|
||||
accept->set_text(vformat(TTR("Error instancing scene from %s"), files_str.c_str()));
|
||||
accept->popup_centered_minsize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user