diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-16 11:28:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-16 11:28:15 +0200 |
commit | 5614692a1a82ef0ce6fa1d268903ff38787bd728 (patch) | |
tree | 4cb00e982c8cf1765b34d7fdfae5668da7cc5de1 /editor/script_create_dialog.cpp | |
parent | 787be50f1760be541e97b18a371abccc9c9b1ac9 (diff) | |
parent | 75d5d81b8aa745e4239ff05f16e5247d077b47c8 (diff) | |
download | redot-engine-5614692a1a82ef0ce6fa1d268903ff38787bd728.tar.gz |
Merge pull request #22133 from YeldhamDev/all_oks_shall_be_banished
Remove unnecessary "OK"s text settings
Diffstat (limited to 'editor/script_create_dialog.cpp')
-rw-r--r-- | editor/script_create_dialog.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index be255ba4aa..d8de775d36 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -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; |