From 9bf1e4f571c382dff3b265dddc9c52ec971c7a84 Mon Sep 17 00:00:00 2001 From: r-zakarya <82443831+r-zakarya@users.noreply.github.com> Date: Fri, 10 Jul 2026 12:29:07 +0100 Subject: [PATCH] fix(sync): warn when pre-sync backup has no folder (was silent no-op) --- js/app.sync.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/app.sync.js b/js/app.sync.js index 19c59fb..a935d2b 100644 --- a/js/app.sync.js +++ b/js/app.sync.js @@ -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 */ } }