fix(sync): warn when pre-sync backup has no folder (was silent no-op)
This commit is contained in:
@@ -543,6 +543,8 @@ async function runSyncNow(_attempt) {
|
||||
.replace(/[-:]/g, '').replace('T', '-').slice(0, 15);
|
||||
const path = dir.replace(/[\\/]+$/, '') + '\\vault-presync-' + ts + '.json';
|
||||
await Bridge.writeFile(path, JSON.stringify(container, null, 2));
|
||||
} else {
|
||||
toast('Pre-sync backup skipped — set an auto-backup folder first', 'warning');
|
||||
}
|
||||
} catch (_) { /* best-effort */ }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user