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

Bug: Icon on the desktop does not update after emptying the bin #9946

Open
Tracked by #1089
yaira2 opened this issue Sep 8, 2022 · 7 comments
Open
Tracked by #1089

Bug: Icon on the desktop does not update after emptying the bin #9946

yaira2 opened this issue Sep 8, 2022 · 7 comments
Labels
area - file operations Features or bug reports for file operations

Comments

@yaira2
Copy link
Member

yaira2 commented Sep 8, 2022

Steps to reproduce

  • Empty recycle bin
  • See that the icon on the desktop still looks full

Steps to fix

  • Update the icon to be empty
@yaira2 yaira2 added the bug label Sep 8, 2022
@yaira2 yaira2 moved this to 🆕 New in Files task board Sep 8, 2022
@Josh65-2201 Josh65-2201 changed the title Icon on the desktop does not update after emptying the bin Bug: Icon on the desktop does not update after emptying the bin Sep 8, 2022
@yaira2 yaira2 moved this from 🆕 New to 🔖 Ready to build in Files task board Oct 13, 2022
@hecksmosis
Copy link
Contributor

Should this not be merged with #9195 ?

@QuaintMako
Copy link
Contributor

QuaintMako commented Jan 3, 2023

A PR (#10113) that was implementing this issue has been made, but removed for limitation issues regarding the current implementation.

A few things to keep in mind for the next person implementing the feature:

  • There are several scenarios where the icon needs to be reevaluated:
    -- When files are deleted into the recycle bin
    -- When files are being restored in the recycle bin
    -- When files are being deleted from the recycle bin
    -- When the recycle bin is entirely restored or empty

  • The icons should be taken from Constants.ImageRes.

  • The indexes for the Constants.ImageRes are namely public const int RecycleBin = 54 and public const int EmptyRecycleBin = 55.

@QuaintMako
Copy link
Contributor

It seems there is an undocumented method from Shell32.dll called SHUpdateRecycleBinIcon that could update the icon of the RecycleBin. Might be useful for that issue.

@Josh65-2201 Josh65-2201 moved this from 🔖 Ready to build to 🏗 In progress in Files task board Sep 19, 2023
@yaira2 yaira2 moved this from 🏗 In progress to 🔖 Ready to build in Files task board Nov 19, 2023
This was referenced Jun 27, 2024
@yaira2 yaira2 removed the bug label Oct 7, 2024
@Josh65-2201 Josh65-2201 added the area - file operations Features or bug reports for file operations label Jan 19, 2025
@NilayParikh33
Copy link

is this still open? I can try this one.

@Sergey842248
Copy link

Unfortunately, yes. It's still broken.

@yaira2
Copy link
Member Author

yaira2 commented Mar 30, 2025

is this still open? I can try this one.

@NilayParikh33 please do 🙂

I've had trouble fixing this.

@NilayParikh33
Copy link

Yes I can try but Actually I have to go through the code because I am new and I don't have understanding of code. So That's why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area - file operations Features or bug reports for file operations
Projects
Status: 🔖 Ready to build
6 participants