From 59ab96be984f88e37f9ec3eb42364b89a9f1517f Mon Sep 17 00:00:00 2001 From: mow Date: Sun, 8 Mar 2026 09:20:34 +0100 Subject: [PATCH] docs: fix misleading and add comment for SessionData --- core/src/document/session.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/document/session.rs b/core/src/document/session.rs index 01e49c5..8dd49e9 100644 --- a/core/src/document/session.rs +++ b/core/src/document/session.rs @@ -16,7 +16,6 @@ // A curated, ordered list of documents (or individual pages within them). // Items are persisted exactly as stored. Missing files are detected and // removed with a warning when the session file is loaded. -// `path` is None for this kind. // // The on-disk representation of a session list is managed by `store.rs`. @@ -53,7 +52,9 @@ impl SessionItem { pub struct SessionData { pub name: String, pub kind: CollectionKind, - /// Source directory for `DirectoryBrowser` sessions; `None` for `DocumentCollection`. + /// For DirectoryBrowser: the source directory to scan. + /// For DocumentCollection: None (items are managed individually). + /// The .ron session file path is tracked separately. #[serde(default)] pub path: Option, pub items: Vec,