fix note tree flickering (note cache was not updated when expanded status changed)

This commit is contained in:
zadam
2021-02-04 22:05:32 +01:00
parent 48cb4d2ab9
commit 6469937393
5 changed files with 32 additions and 12 deletions

View File

@@ -80,8 +80,9 @@ eventService.subscribe([eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED
delete noteCache.branches[branchId];
}
else if (branchId in noteCache.branches) {
// only relevant thing which can change in a branch is prefix
// only relevant properties which can change in a branch are prefix and isExpanded
noteCache.branches[branchId].prefix = entity.prefix;
noteCache.branches[branchId].isExpanded = entity.isExpanded;
if (childNote) {
childNote.flatTextCache = null;