Skip to content
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

Feature: Add recycle bin settings to the properties window #10343

Open
verdaderoken opened this issue Oct 30, 2022 · 16 comments
Open

Feature: Add recycle bin settings to the properties window #10343

verdaderoken opened this issue Oct 30, 2022 · 16 comments
Labels
area - properties window Features or bug reports for the file permissions page feature request

Comments

@verdaderoken
Copy link
Contributor

verdaderoken commented Oct 30, 2022

What feature or improvement do you think would benefit Files?

I just noticed Files would open Recycle Bin's properties as if it was a normal folder.
The extra settings (the checkboxes, the max size) of the Recycle Bin should also be included in the redesign.

Files Recycle Bin properties window:
image

Default Recycle Bin properties window:
image

Requirements

  • Have a Files app version of the Recycle Bin properties including these extra settings
    image

  • Temporarily redirect to a default Recycle Bin properties instead of the current one (If the above would take time to develop)

Files Version

2.3.54.0

Windows Version

10.0.22623.875

Comments

No response

@yaira2 yaira2 changed the title Feature: Improve the Recycle Bin properties window Feature: Add recycle bin settings to the properties window Oct 31, 2022
@Josh65-2201
Copy link
Member

Would be nice if the normal properties on it worked also. (If removing it was an idea) Then a new tab for the size limits.

@hecksmosis
Copy link
Contributor

hecksmosis commented Jan 12, 2023

I think we could remove the Attributes and Created, Modified, Accessed rows and just add a new page for the size limits

@hecksmosis
Copy link
Contributor

@yaira2 Is this ready to be worked on?

@yaira2
Copy link
Member

yaira2 commented Jan 13, 2023

I think we could remove the Attributes and Created, Modified, Accessed rows and just add a new page for the size limits

I agree that more details can be hidden for recycle bin and replaced with an option to change the maximum size. We don't need as

I think a card with an option to change the maximum size (number box control) should do the trick, the other options are app preferences and don't belong in the properties window.

image

@Josh65-2201
Copy link
Member

Josh65-2201 commented Jan 13, 2023

That would have to be made for all drive connected as they all have there own recycle bin folders so a separate page would probably have to be made.

@yaira2
Copy link
Member

yaira2 commented Jan 13, 2023

I wasn't aware of that, we'll need a better design then.

@hecksmosis
Copy link
Contributor

Are Recycle bin folders in other drives currently supported?

@Josh65-2201
Copy link
Member

What do you mean by supported? All drive that have recycle bin support show in the recycle bin section and deleted items will go into like they should unless permanently delete option is checked.

@hecksmosis
Copy link
Contributor

I mean in Files

@hecksmosis
Copy link
Contributor

I have tested this and if you try to delete a file in a non-root physical drive it just deletes to the default C: Recycle Bin so we probably shouldn't implement the separate page until we do support the other bins (and instead use a single card for the time being)

@Josh65-2201
Copy link
Member

Work fine for me. Deleting content on another drive will place it into the recycle bin folder of that drive. Are you using the $RECYCLE.BIN folder (Turn on showing protected system files) or the one on the sidebar. If its the sidebar then that just acts like a library showing all the drives together.

@hecksmosis
Copy link
Contributor

Oh, I didn't know that

@hecksmosis
Copy link
Contributor

Then we should implement the tab

@yaira2
Copy link
Member

yaira2 commented Jan 13, 2023

I'm not sure we need a tab, I still think a card with a list view would work. Could add a number box to the template for changing the size.

@0x5bfa 0x5bfa added the area - properties window Features or bug reports for the file permissions page label May 17, 2024
@0x5bfa
Copy link
Member

0x5bfa commented May 17, 2024

For others:

Those values are stored in the registry

  • Maximum allowed Recycle Bin size: Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RecycleBinSize
  • Do not move deleted files to the Recycle Bin: Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRecycleFiles

As you may find, we have to follow this setting if we implement this page. And I agree with Yair, it’s not worth having a new page, just a card in General tab.

If no one here is interested in implementing this feature, I can work on. There’re some work left so it’ll take a time to get started; while then if someone come here and struggling I can help them.

@0x5bfa
Copy link
Member

0x5bfa commented May 17, 2024

that just acts like a library showing all the drives together.

Current properties management sucks (SelectedItemPropertiesViewModel and BaseProperties classes). We should have single interface (as in IStorableProperties) and then inherit it from IFileProperties, IFolderProperties, IDriveProperties, IDeviceProperties, IShellFolderProperties, INetworkLocationProperties and IFileTagProperties.
Reflection can determine which pages should be shown and how properties should be changed via Details page or General page, using dedicated methods(as in ModifyLastAccess)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area - properties window Features or bug reports for the file permissions page feature request
Projects
Status: 📋 Planning stage
Development

No branches or pull requests

5 participants