Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently display script icons for nodes in connect dialog's scene tree editor #92648

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

stephen-berry
Copy link
Contributor

@stephen-berry stephen-berry commented Jun 1, 2024

#92513 requested to be able to view script icons with/without the ConnectDialog's advanced tab enabled for better context when selecting signals.

The change made was simple, with the biggest change involving the use of 'connecting_signal' boolean to ensure all script icons are displayed (custom or otherwise) when the connect dialog scene tree is open.
Before this change, all icon additions were made under the connect_to_script_mode. When Advanced is enabled, the connect_to_script_mode is set to false, which results in never adding the script buttons to the scene tree editor.

The fix should be low-risk because the icons are only added during connect dialog scene tree's. I would have added tests, but I noticed there are currently no test files under editor/ (and this being my first ticket, I wasn't sure how to proceed with the tests).

The 'before change' video (linked in the original ticket) displays the issue, and below I have the 'after change' result of both advanced off/on.

Advanced off:
GODOT-92513_Advanced_Disabled

Advanced on:
GODOT-92513_Advanced_Enabled

Bugsquad edit:

@akien-mga
Copy link
Member

Looks good! Could you squash the commits? See PR workflow for instructions.

@stephen-berry
Copy link
Contributor Author

I will squash them as soon as possible (away from PC til sunday :0) thank you! :)

@stephen-berry
Copy link
Contributor Author

After interactive rebasing, I noticed I didn't see my 2 review commits from here. I added them and amended them as a commit to previous. I hope this is okay, and feel free to let me know if there's something else I should have done :) sorry for any inconvenience (and thank you for reviewing!)

@akien-mga
Copy link
Member

After interactive rebasing, I noticed I didn't see my 2 review commits from here. I added them and amended them as a commit to previous.

Yes what you did looks correct. We like that simple PRs have a single commit, so fixups following PR review should be amended into the original commit to keep it as a single commit.

I pushed another rebase of your branch as there was a temporary CI failure due to GitHub Actions changes, unrelated to this PR.

@akien-mga akien-mga merged commit 3092b0c into godotengine:master Jun 10, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection dialog does not show script icon in advanced mode
4 participants