-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
"Move to Trash" does not move files to Recycle Bin on Windows under specific configuration #47106
Comments
The message can just be edited to clarify that this depends on having the system trash actually enabled... |
I see two possible solutions to this:
|
Nice try, but that doesn't solve the issue, since there's an explicit mention to what the action does in the confirmation dialog shown in your screenshot. |
I'm not excluding additional usability enhancements which can be done after the bug fix, I'm saying that it would be enough to revert to previous state on Windows for now (having "Delete" instead of "Move to Trash"), because current behavior is buggy, and is an actual bug from the user standpoint. Let me explain. "Delete" on Windows can mean both "Move to Trash" or "Delete" without moving to trash depending on configuration. When a Windows user is aware of this configuration, there's less ambiguity even with the confirmation dialog suggesting otherwise, because a user has to explicitly reconfigure the "Recycle Bin" to act that way in Windows. "Move to Trash" means exactly what it says on the tin when you see it in Godot, but when a user happens to use the non-default configuration (without moving to trash, again, explicitly enabled), then that's unexpected compared to above case. The proper fix to this would entail all proposed enhancements, of course. |
Can you tell how? |
I searched a bit , there is no any official/clean way to check for recycle bin configuration in windows. I think this issue need to be closed with updated message , nothing much can be done. |
I don't know how to be honest, but it would be quite surprising to figure out that Windows API does not have a way to check this programmatically. The way I see it, Godot could have |
I think that implementing OS specific APIs just for the sake of updating a message that doesn't even need to mention what will happen to the file would really be overkill. I'll just change the message. |
Fixes godotengine#47106. (cherry picked from commit 41ed695)
Fixes godotengine#47106. (cherry picked from commit 41ed695)
Godot version:
3.2.4 rc
OS/device including version:
Windows 10
Issue description:
Godot does not move files to Recycle Bin when a file is deleted from the filesystem dock with the "Move to Trash" menu option, and when the Recycle Bin is configured so that files are not placed inside Recycle Bin (via "Properties").
Originally showcased by @aaronfranke in godotengine/godot-proposals#2460 (comment).
Steps to reproduce:
Make sure you're configuring the drive where Godot project is located.
Move to Recycle bin (expected)
Do not move to Recycle bin (not expected)
Minimal reproduction project:
N/A
The text was updated successfully, but these errors were encountered: