fix deleting note from task manager, closes #3239

This commit is contained in:
zadam 2022-10-26 19:14:49 +02:00
parent 44b68326a0
commit 7d732eb73b
2 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,6 @@
- drop branches.utcDateCreated - not used for anything
- drop options.utcDateCreated - not used for anything
- isDeleted = 0 by default - isDeleted = 0 by default
- rename openTabs to openNoteContexts - rename openTabs to openNoteContexts
- migrate black theme to dark theme
- unify readOnly handling to a single attribute: - unify readOnly handling to a single attribute:
* readOnly - like now * readOnly - like now
* readOnly=auto - like without readOnly (used to override inherited readOnly) * readOnly=auto - like without readOnly (used to override inherited readOnly)
* readOnly=never - like autoReadOnlyDisabled * readOnly=never - like autoReadOnlyDisabled
- remove focusOnAttributesKeyboardShortcut
- rename white theme to "light" theme (it's not completely white and matches well to dark theme)

View File

@ -170,6 +170,10 @@ class Branch extends AbstractEntity {
log.info("Deleting note " + note.noteId); log.info("Deleting note " + note.noteId);
// marking note as deleted as a signal to event handlers that the note is being deleted
// (isDeleted is being checked against becca)
delete this.becca.notes[note.noteId];
for (const attribute of note.getOwnedAttributes()) { for (const attribute of note.getOwnedAttributes()) {
attribute.markAsDeleted(deleteId); attribute.markAsDeleted(deleteId);
} }