d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.81k stars 500 forks source link

Network drive letter: Thumbnail panel doesn't update when deleting picture #1440

Open mpek opened 2 years ago

mpek commented 2 years ago

System information:

To Reproduce

Steps to reproduce the behavior:

  1. Have a network share mounted to a drive letter
  2. Open Explorer click on that drive letter and open a picture from that directory network location.
  3. In ImageGlass turn on thumbnail panel if not present (Menu > Layout > Thumbnail panel) or by pressing "h" key
  4. Make sure thumbnail panel is visible
  5. Sroll to picture until one should be deleted
  6. Deleting a picture by pressing the button "Move to recycle bin" or DEL key
  7. Scroll back to that deleted picture and an error is visible while thumbnail placeholder is picked

Actual behavior:

The thumbnail is still visible after deletion of that image, thumbnail panel is not being updated. The error message says:

ImageGlass cannot open this picture because the file appears to be damaged, corrupted or not supported. Magick.NET-Q16-HDRI-OpenMP-x64 unable to open image: 'V:\800x800px-orange.png'. No such file or directory @ error/blob.c/Openob/3570

After a while error message disappears, but comes back when scrolling to that thumbnail again.

Expected behavior:

When deleting an image, its thumbnail should disappear from thumbnail panel as well, when using a network drive.

Screenshots:

https://i.imgur.com/GbqHdZo.png

Additional context:

If you restart ImageGlass the deleted picture(s) are gone from thumbnail panel.

savbran commented 1 year ago

Yes, I have the same problem