From 65610444570abb4bdf599604014785d410b57072 Mon Sep 17 00:00:00 2001 From: John Novak Date: Sat, 30 Mar 2024 22:27:16 +1000 Subject: [PATCH] Fix notes list caching --- src/main.nim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.nim b/src/main.nim index 05672daa..1bee79e6 100644 --- a/src/main.nim +++ b/src/main.nim @@ -8426,12 +8426,13 @@ proc renderNotesListPane(x, y, w, h: float; a) = for l in map.levels: if l.id notin nls.sectionStates: nls.sectionStates[l.id] = true + map.levelsDirty = false if l.annotations.dirty: l.annotations.dirty = false - if map.levelsDirty: - map.levelsDirty = false + if l.dirty: + l.dirty = false if rebuildNotesCache: @@ -8465,7 +8466,7 @@ proc renderNotesListPane(x, y, w, h: float; a) = # TODO discard - nls.prevFilter = nls.currFilter + nls.prevFilter = nls.currFilter # Scroll view with notes let