mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 19:24:18 +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
|
|
@ -3267,7 +3267,6 @@ void SpatialEditorViewport::_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();
|
||||
}
|
||||
|
|
@ -3348,7 +3347,6 @@ void SpatialEditorViewport::drop_data_fw(const Point2 &p_point, const Variant &p
|
|||
if (root_node) {
|
||||
list.push_back(root_node);
|
||||
} else {
|
||||
accept->get_ok()->set_text(TTR("OK"));
|
||||
accept->set_text(TTR("No parent to instance a child at."));
|
||||
accept->popup_centered_minsize();
|
||||
_remove_preview();
|
||||
|
|
@ -3356,7 +3354,6 @@ void SpatialEditorViewport::drop_data_fw(const Point2 &p_point, const Variant &p
|
|||
}
|
||||
}
|
||||
if (list.size() != 1) {
|
||||
accept->get_ok()->set_text(TTR("OK"));
|
||||
accept->set_text(TTR("This operation requires a single selected node."));
|
||||
accept->popup_centered_minsize();
|
||||
_remove_preview();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue