From 2d5abf1feb69b74bf76725b2819e12360d42a882 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 25 May 2025 05:21:08 +0200 Subject: [PATCH] Add check for relocation and existence before snapshot --- main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.js b/main.js index e2a1925..3505d3c 100644 --- a/main.js +++ b/main.js @@ -887,6 +887,9 @@ app.whenReady().then(() => { // Snapshot ipcMain.handle('snapshot-commit', async (_e, folderObj, hash) => { + if (folderObj.needsRelocation || !fs.existsSync(folderObj.path)) { + return null; + } const { canceled, filePaths } = await dialog.showOpenDialog({ title: 'Ordner auswählen zum Speichern des Snapshots', properties: ['openDirectory']