Skip to content

feat: add an option to disable moving the discarded changes to Trash - #17436

Closed
aminya wants to merge 3 commits into
desktop:developmentfrom
aminya:no-trash-option
Closed

aminya wants to merge 3 commits into
desktop:developmentfrom
aminya:no-trash-option

Conversation

@aminya

@aminya aminya commented Sep 24, 2023 •

Copy link
Copy Markdown
Contributor

Closes #10445
Remedy for #7155

Description

This adds an option to disable moving the discarded changes to Trash, i.e. permanently discard.

Screenshots

image
image
image

Release notes

Notes:

  • feat: add an option to disable moving the discarded changes to Trash

@aminya aminya changed the title feat: add an option to permanently discard changes feat: add an option to disable moving discard changes to Trash Sep 25, 2023
@aminya aminya changed the title feat: add an option to disable moving discard changes to Trash feat: add an option to disable moving the discarded changes to Trash Sep 25, 2023
@MichaIng

Copy link
Copy Markdown

Many thanks, such an important feature.

  • The "Do not show this message again" checkbox refers to the discard confirmation prompt itself, not the trash bin choice, right?
  • If so, if you choose to not show the confirmation prompt again, you cannot uncheck the trash bin usage? If so, is the trash bin choice saved for all future files/discards?
  • I have not tested in a while, but discarding multiple files seems to always enforce a confirmation, hence no "do not show again" checkbox?
  • Finally, I think it would be great to have the checkbox in the regular options GUI as well, to not solely rely on the confirmation dialog. But that should not be a blocker for this PR.

@aminya

aminya commented Sep 29, 2023 •

Copy link
Copy Markdown
Contributor Author

You're welcome!

The "Do not show this message again" checkbox refers to the discard confirmation prompt itself, not the trash bin choice, right?
If so, if you choose to not show the confirmation prompt again, you cannot uncheck the trash bin usage? If so, is the trash bin choice saved for all future files/discards?
I have not tested in a while, but discarding multiple files seems to always enforce a confirmation, hence no "do not show again" checkbox?

I didn't touch the code related to "do not show". Whatever logic you have there should work as expected independently.

Finally, I think it would be great to have the checkbox in the regular options GUI as well, to not solely rely on the confirmation dialog. But that should not be a blocker for this PR.

I added that in bdd16a6

@aminya

aminya commented Jan 16, 2024 •

Copy link
Copy Markdown
Contributor Author

@niik Any update on merging this?

@lofcz

lofcz commented Jan 27, 2024

Copy link
Copy Markdown
Contributor

Is there something blocking the merge? Just had to discard 15k files, github desktop client didn't even finish after hours, git reset HEAD && git clean -fd took ~10 seconds.

@aminya aminya mentioned this pull request Jul 4, 2024
@steveward steveward added the external Pull request originating outside of the Desktop core team label Oct 4, 2024
@tidy-dev

tidy-dev commented Nov 26, 2024 •

Copy link
Copy Markdown
Contributor

@aminya Apologies for the long delay in response (small team and pr are reviewed as time permits). I understand that you may not have the time or desire to follow up with this now. However if you do, here is our feedback. (If no action in 14 days, we will close this PR)

The concern for us in this approach is that it is only percentage of users who have the pain point that would require them to permanently delete files. For the rest of our users, it is the safer option to delete to trash so the files are recoverable. Thus, we do not want it easy for users to opt out of the safer option. Additionally, we prefer to not have multiple checkboxes in a prompt.

Thus, we would prefer:

  1. Adding this setting that is off by default to the Advanced tab
    • Permanently delete when discarding changes. (Do not send to {trash/bin})
  2. Ensure the users receives a "Discarding Changes Permanently" dialog instead of the regular one when this setting is checked. This would have similar messaging to the DiscardChangesRetryDialog stating that These changes will be unrecoverable from {trash/bin}
  3. Tie this to the Discarding Changes Permanently prompt setting to allow users to not receive this prompt anymore.

@tidy-dev

Copy link
Copy Markdown
Contributor

Closing this due to (understandable) lack of activity. If you would decide to try again, please open a fresh PR so it will be up to date with the development branch.

@tidy-dev tidy-dev closed this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Pull request originating outside of the Desktop core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to not use Trash bin

5 participants