(path)
| 7277 | console.error('Import library error:', error); |
| 7278 | if (event && event.sender) { |
| 7279 | event.sender.send('close-progress-dialog'); |
| 7280 | } |
| 7281 | throw error; |
| 7282 | } |
| 7283 | } |
| 7284 | return false; |
| 7285 | }); |
| 7286 | |
| 7287 | // Update these handlers to remove Promise wrappers and use synchronous API |
| 7288 | |
| 7289 | ipcMain.handle('get-duplicate-files', async () => { |
| 7290 | try { |
| 7291 | const models = db.prepare(` |
| 7292 | SELECT filePath, hash, size, |