-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Update Inspector when renaming a file via File System Dock #97348
base: master
Are you sure you want to change the base?
Update Inspector when renaming a file via File System Dock #97348
Conversation
5233d83
to
b570cc2
Compare
Fixes godotengine#56803 Adding a new signal `file_renamed` to `FileSystemDock` and then connecting it to `InspectorDock` to update the path of the file on `object_selector`.
b570cc2
to
0f033f5
Compare
Updated to the latest |
Does not work when you rename a script. |
Seems it's worst than not updating a script. When I implemented this fix I test it with an empty project (as it can be viewed on the video attached on the description) and it worked for the Godot icon (my bad that doesn't work with scripts 🤦🏼♂️ ) |
To me it looks like the new signal added in this PR is emitted every time a single file's path changes, so But why adding a new signal when |
I decided to add a new signal because a moved file doesn't imply the name of the file changed, and the inspector requires being updated only when the name of the file changed. |
The signal being called |
Fixes #56803
Adding a new signal
file_renamed
toFileSystemDock
and then connecting it toInspectorDock
to update the path of the file onobject_selector
.2024-09-23.00-55-14.mov