-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Add ability to rename groups in the GroupsEditor #62659
Add ability to rename groups in the GroupsEditor #62659
Conversation
6f254ed
to
881370c
Compare
@@ -217,19 +217,14 @@ void GroupDialog::_add_group_text_changed(const String &p_new_text) { | |||
} | |||
|
|||
void GroupDialog::_group_renamed() { | |||
TreeItem *renamed_group = groups->get_edited(); | |||
TreeItem *renamed_group = groups->get_selected(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
881370c
to
54ea4fc
Compare
We discussed this in a PR review meeting, and there's one issue with this approach. The group dialog (which you get when clicking "Manage Groups") lets you modify groups for all nodes in these groups, so when renaming a group there, it gets renamed for all nodes. While this PR changes the Node-specific group dock, and renaming a group there should not affect other nodes. So this should be changed to only change the group for the selected Node (i.e. creating a new group instead of renaming an existing one that might be shared by others). |
54ea4fc
to
2efbba7
Compare
@akien-mga Done, I think |
2efbba7
to
1b1f0de
Compare
1b1f0de
to
8075adc
Compare
@KoBeWi ah, it's just rebasing - I thought you've fixed a bug :) |
@KoBeWi that bug is not related to this PR (at least directly). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved in PR review meeting.
Thanks! |
QoL change to the Groups editor:
Previously user must press
Manage Groups
to call the dialog to change it. I didnt checked how it would interact with #60965. If that PR would superseeds it, that would be good, if not, it can be used on its own.Also added a check to prevent redundanly calling
create_action(TTR("Rename Group"));
if the group name was unchanged.