Deleted images continue to show in QuickViewer
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).
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.
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
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:
- https://github.com/kanryu/quickviewer/blob/master/QuickViewer/src/mainwindow.cpp
- MainWindow::onActionRecyclePage_triggered()
- MainWindow::onActionDeletePage_triggered()