You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Rename AcceptDialog get_ok() to get_ok_button()
Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
This commit is contained in:
@@ -62,7 +62,7 @@ void ResourcePreloaderEditor::_files_load_request(const Vector<String> &p_paths)
|
||||
dialog->set_text(TTR("ERROR: Couldn't load resource!"));
|
||||
dialog->set_title(TTR("Error!"));
|
||||
//dialog->get_cancel()->set_text("Close");
|
||||
dialog->get_ok()->set_text(TTR("Close"));
|
||||
dialog->get_ok_button()->set_text(TTR("Close"));
|
||||
dialog->popup_centered();
|
||||
return; ///beh should show an error i guess
|
||||
}
|
||||
@@ -144,7 +144,7 @@ void ResourcePreloaderEditor::_paste_pressed() {
|
||||
if (!r.is_valid()) {
|
||||
dialog->set_text(TTR("Resource clipboard is empty!"));
|
||||
dialog->set_title(TTR("Error!"));
|
||||
dialog->get_ok()->set_text(TTR("Close"));
|
||||
dialog->get_ok_button()->set_text(TTR("Close"));
|
||||
dialog->popup_centered();
|
||||
return; ///beh should show an error i guess
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user