Skip to content

Update Add Action button Disabled Status when Removing any action#121766

Open
og-mrk wants to merge 1 commit into
godotengine:masterfrom
og-mrk:editor/20260725-action_map_editor-handling_edge_case
Open

Update Add Action button Disabled Status when Removing any action#121766
og-mrk wants to merge 1 commit into
godotengine:masterfrom
og-mrk:editor/20260725-action_map_editor-handling_edge_case

Conversation

@og-mrk

@og-mrk og-mrk commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Commit Description

Makes sure the add action button is enabled when the action name the user wants to add is equal to recently removed action inside the tree. without this change, the add button will remain disabled (even though it's a valid action name), making the user feel the GUI is unresponsive.

Testing

Before Changes

add_action_button_before_changes.mp4

After Changes

add_action_button_after_changes.mp4

Additional information

  • You can still add the action by clicking EditLine field, and pressing Enter, but I think if it's valid to do this using shortcuts, it's should be the same using UI components (through the add button in this case).
  • Reason behind calling the _add_edit_text_changed callback is because it does all the validation needed when deciding to Enable or Disable the Add Action button, and setting tooltip text, so calling it makes more sense then code duplication.
    After further reading the code, it does alot of unnecessary checks that we know can not happen (EditLine containing invalid Action Name.. Looping over entire Actions Cache when we care about one case), so for this reason, we'll simply check if what's inside EditLine == name of removed action, which has the side effect of making the code self documenting. (link to changes)

Use of AI

No AI was used in the process of making these changes.

@og-mrk
og-mrk requested a review from a team as a code owner July 25, 2026 13:50
…ction

Makes sure the add action button is enabled when the action name the user wants to add is equal to recently removed action inside the tree. without this change, the add button will remain disabled (even though it's a valid action name), making the user feel the GUI is unresponsive.
@og-mrk
og-mrk force-pushed the editor/20260725-action_map_editor-handling_edge_case branch from af0b0b4 to 545a8e5 Compare July 25, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant