-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Cleanups after changes in ItemList
signals
#60906
Conversation
Are you sure that this code is not meant to be used? There was likely different logic based on whether a right click is done on an item (file or folder specific context menu) or empty space (actions that can be done in the current folder). |
All context menus (rmb click on file/folder/empty space) in editor's FileSystem work correctly. The method: godot/editor/filesystem_dock.cpp Lines 2668 to 2689 in e3371a5
has not been used anywhere except here (and since this signal is removed, this method cannot be called any way): godot/editor/filesystem_dock.cpp Line 3138 in e3371a5
As far as I understand, this is a reworked version of godot/editor/filesystem_dock.cpp Lines 2640 to 2666 in e3371a5
used here: godot/editor/filesystem_dock.cpp Line 3135 in e3371a5
@Vitika9, can correct me here if I'm wrong. |
This was not supposed to be removed. My PR included changing
|
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.
Changes look correct to me. One last style nitpick (not from this PR but to improve the previous one) would be to also rename _file_list_rmb_clicked
to _file_list_item_clicked
to have it match its renamed signal too.
Yes, I thought about that too. Also, I would like to double-check everything again to make sure that I correctly understand how everything works and that I did not miss anything. |
Initially, I misunderstood how the code works, because I experimented with normal FileSystem dock mode, but I needed to test it in the split mode. By the way, I found an additional problem, but I think it can be fixed in another PR. bug.mp4 |
ItemList
signals
I can't seem to reproduce it in the current Edit: I can't reproduce it either (on Linux X11) with a build from this PR, so it might not be related to this PR in the end. |
I can reproduce it in the current master branch (ccb583b) and in v4.0-alpha7 on Windows 11. Perhaps the issue is platform dependent. |
Thanks! |
rmb_clicked
replaced withempty_clicked
_file_list_rmb_pressed
renamed to_file_list_empty_clicked
_file_list_rmb_clicked
renamed to_file_list_item_clicked
EditorFileDialog::_items_clear_selection
(empty_clicked
expects 2 arguments)Continuation of the work done in #59720.