Skip to content

Commit

Permalink
Fix notes list caching
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnovak committed Mar 30, 2024
1 parent c6048b0 commit 6561044
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6561044

Please sign in to comment.