From 0f1c4407c3cae6f4ae87e8352a9cc0aefcb42205 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 28 Mar 2024 10:00:12 +0100 Subject: [PATCH] change: change lastchanged as soon as note is opened --- main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.js b/main.js index 8a7c9fd..3a282f4 100644 --- a/main.js +++ b/main.js @@ -2557,6 +2557,8 @@ function loadnote(title) } bind(item.title, content, item.pos); + item.lastchanged = Date.now(); + serializeindex(); if (!preview.hidden || (preview.hidden && (gettags(md.value).indexOf("preview") !== -1))) {