We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0bba1f + 014aade commit 84415efCopy full SHA for 84415ef
1 file changed
src/main/imageEvents.ts
@@ -71,7 +71,9 @@ export class ImageEventHandler {
71
72
Electron.ipcMain.on('do-image-deletion-batch', async(event, imageIDs) => {
73
try {
74
- await this.imageProcessor.deleteImages(imageIDs);
+ const uniqueImageIDs = new Set<string>(imageIDs);
75
+
76
+ await this.imageProcessor.deleteImages([...uniqueImageIDs]);
77
await this.imageProcessor.refreshImages();
78
event.reply('images-process-ended', 0);
79
} catch (err) {
0 commit comments