Godot Engine – Multi-platform 2D and 3D game engine
[Editor] Update Add Action button Disabled Status when Removing any action
Mr.k56b4852dff49
diff --git a/editor/settings/action_map_editor.cpp b/editor/settings/action_map_editor.cppindex 29c01826fd1..2a5cf31d636 100644--- a/editor/settings/action_map_editor.cpp+++ b/editor/settings/action_map_editor.cpp@@ -189,6 +189,10 @@ void ActionMapEditor::_tree_button_pressed(Object *p_item, int p_column, int p_i// Send removed action nameString name = item->get_meta("__name");emit_signal(SNAME("action_removed"), name);++ // Update the "Add" button in case the deleted action shares+ // the same name as the new one.+ _add_edit_text_changed(add_edit->get_text());} break;case ActionMapEditor::BUTTON_REMOVE_EVENT: {// Remove event and send updated action