1
0

Add check for relocation and existence before snapshot

This commit is contained in:
2025-05-25 05:21:08 +02:00
parent b84d469960
commit 2d5abf1feb

View File

@@ -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']