mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +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
|
@ -164,7 +164,6 @@ void ScriptCreateDialog::_create_new() {
|
|||
if (script_template != "") {
|
||||
scr = ResourceLoader::load(script_template);
|
||||
if (scr.is_null()) {
|
||||
alert->get_ok()->set_text(TTR("OK"));
|
||||
alert->set_text(vformat(TTR("Error loading template '%s'"), script_template));
|
||||
alert->popup_centered();
|
||||
return;
|
||||
|
@ -201,7 +200,6 @@ void ScriptCreateDialog::_load_exist() {
|
|||
String path = file_path->get_text();
|
||||
RES p_script = ResourceLoader::load(path, "Script");
|
||||
if (p_script.is_null()) {
|
||||
alert->get_ok()->set_text(TTR("OK"));
|
||||
alert->set_text(vformat(TTR("Error loading script from %s"), path));
|
||||
alert->popup_centered();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue