Skip to content

Commit

Permalink
Logging cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnovak committed Jul 4, 2024
1 parent abdfaaf commit b30f1b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/persistence.nim
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ proc readNotesListPaneState(rr; map: Map): AppStateNotesListPane =
# Section states
for levelIndex in 0..<map.levels.len:
let sectionState = rr.read(uint8)
checkBool(sectionState, "stat.notl.sectionState")
checkBool(sectionState, "stat.notl.levelSectionState")
s.levelSections[levelIndex] = sectionState.bool

let l = map.levels[levelIndex]
Expand All @@ -414,8 +414,9 @@ proc readNotesListPaneState(rr; map: Map): AppStateNotesListPane =
let r = l.regions[rc].get

let regionState = rr.read(uint8)
checkBool(regionState, "stat.notl.regionState")
s.regionSections[(levelIndex.Natural, rc)] = regionState.bool
checkBool(regionState, "stat.notl.regionSectionState")
let key = (levelIndex.Natural, rc)
s.regionSections[key] = regionState.bool

result = s

Expand Down

0 comments on commit b30f1b8

Please sign in to comment.