1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

[Scene] Add SceneStringNames::confirmed

This commit is contained in:
A Thousand Ships
2024-05-14 14:28:18 +02:00
parent d9e2fc74c7
commit ca18a06ecb
66 changed files with 128 additions and 124 deletions

View File

@@ -1246,7 +1246,7 @@ TextShaderEditor::TextShaderEditor() {
dl->set_text(TTR("This shader has been modified on disk.\nWhat action should be taken?"));
vbc->add_child(dl);
disk_changed->connect("confirmed", callable_mp(this, &TextShaderEditor::_reload));
disk_changed->connect(SceneStringName(confirmed), callable_mp(this, &TextShaderEditor::_reload));
disk_changed->set_ok_button_text(TTR("Reload"));
disk_changed->add_button(TTR("Resave"), !DisplayServer::get_singleton()->get_swap_cancel_ok(), "resave");