mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove unnecessary "OK"s text settings
This commit is contained in:
parent
787be50f17
commit
75d5d81b8a
7 changed files with 0 additions and 32 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue