Skip to content

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

Conversation

ferrariofilippo
Copy link
Contributor

…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?

  • Built and ran the app
  • Tested the changes for accessibility

gave92
gave92 previously requested changes Dec 31, 2022
@yaira2 yaira2 changed the title Fixed: Do not show confirmation to delete files in recycle bin when s… Fix: Jan 1, 2023
@yaira2 yaira2 changed the title Fix: Fix: Fixed issue where prompt to delete files would show even with the setting turned off Jan 1, 2023
This reverts commit 06d0cc0.
Copy link
Member

@gave92 gave92 left a 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

@jiejasonliu
Copy link
Contributor

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.

@gave92 gave92 self-requested a review January 2, 2023 15:51
@gave92
Copy link
Member

gave92 commented Jan 2, 2023

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.
Probably better if this PR gets tested by someone else as well.

@yaira2 yaira2 requested a review from hez2010 January 2, 2023 16:32
Copy link
Contributor

@QuaintMako QuaintMako left a 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.

Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Jan 5, 2023
@yaira2 yaira2 changed the title Fix: Fixed issue where prompt to delete files would show even with the setting turned off Fix: Fixed issue where confirm to delete would show even with the setting turned off Jan 5, 2023
@yaira2 yaira2 merged commit 86dcfa3 into files-community:main Jan 5, 2023
@ferrariofilippo ferrariofilippo deleted the Fixed_Confimation_To_Delete_From_Bin branch January 5, 2023 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Confirmation to delete files shows in recycle bin even when setting is off
5 participants