-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix: Fixed issue where confirm to delete would show even with the setting turned off #10893
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
Fix: Fixed issue where confirm to delete would show even with the setting turned off #10893
Conversation
src/Files.App/Filesystem/FilesystemOperations/Helpers/FilesystemHelpers.cs
Outdated
Show resolved
Hide resolved
This reverts commit 06d0cc0.
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.
Aaah wait this is still wrong, if the user has the setting on the dialog should always show. Maybe:
if (showDialog && UserSettingsService.PreferencesSettingsService.ShowConfirmDeleteDialog) // Check if the setting to show a confirmation dialog is on
+1, if we're going the route of disabling the confirmation when it's off, we can just invert the logic entirely; the recycle bin variables aren't relevant anymore. |
I've fixed an issue where deleting a file from network folder did not work if the dialog was turned off. Aside from that, LGTM. |
src/Files.App/Filesystem/FilesystemOperations/Helpers/FilesystemHelpers.cs
Outdated
Show resolved
Hide resolved
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.
LGTM, works fine on my machine.
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.
LGTM
…etting is off
Resolved / Related Issues
Items resolved / related issues by this PR.
Details
I changed the logic so that when the setting is off it never shows the dialog. I think this is the correct behaviour
Validation
How did you test these changes?