From 75ec24ddf6fabea619edb433847d9a94081940d0 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Mon, 6 Jul 2026 14:55:33 -0500 Subject: [PATCH] feat(calendar): add pst_last_path/pst_auto_sync to Settings Backing fields for remembering the imported .pst path across sessions and an opt-in startup auto-resync (T6.2). #[serde(default)] so an existing settings.json without these keys still deserializes. --- src-tauri/src/models.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src-tauri/src/models.rs b/src-tauri/src/models.rs index 0decf5d..7e2c8c9 100644 --- a/src-tauri/src/models.rs +++ b/src-tauri/src/models.rs @@ -207,6 +207,12 @@ pub struct Settings { // Storage retention policy (FR-STORE-2). None = no cap on that dimension. pub retention_max_age_days: Option, pub retention_max_size_gb: Option, + // Calendar / .pst (T6.2) — remembered so the user doesn't re-browse every + // launch. `pst_auto_sync` re-imports this path once at startup if set. + #[serde(default)] + pub pst_last_path: Option, + #[serde(default)] + pub pst_auto_sync: bool, } // ---- Sync (ADR-0010) ----