kanryu / quickviewer

A image/comic viewer application for Windows, Mac and Linux, it can show images very fast
https://kanryu.github.io/quickviewer/
GNU General Public License v3.0
535 stars 63 forks source link

Deleted images continue to show in QuickViewer #155

Open ErikLacharite opened 4 years ago

ErikLacharite commented 4 years ago

My expected behaviour is that the deleted image would be removed from the list view, and the slide-show view (and the slide count to be decremented by -1).

kanryu commented 4 years ago

Basically, QuickViewer doesn't anticipate events where images are added to or deleted from a folder after the folder's images are displayed. The only time changes are reflected is when QuickViwer itself deletes or moves an image to the trash.

Some people may think this behavior is a bug. However, to improve this behavior, we need to monitor file changes in folders. This may not be feasible due to the incompatibility of different OSes.

ErikLacharite commented 4 years ago

I am seeing this issue when deleting images from the QuickViewer UI (Windows 10).

But related to you comment, if you are thinking of adding a file/folder monitor to the OS, see: https://doc.qt.io/qt-5/qfilesystemwatcher.html#directoryChanged

kanryu commented 4 years ago

If QuickViewer deletes the image itself or moves it to the trash, the problem you pointed out will not occur. As long as the program is working properly.

To see: