mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix deleting note from task manager, closes #3239
This commit is contained in:
parent
44b68326a0
commit
7d732eb73b
@ -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)
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user