mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-17 08:38:18 +00:00
删除垃圾不用减少数量
This commit is contained in:
@@ -1411,8 +1411,10 @@ Note.deleteNote = function(target, contextmenuItem, isShared) {
|
|||||||
// 取消star
|
// 取消star
|
||||||
Note.unStar(noteId);
|
Note.unStar(noteId);
|
||||||
|
|
||||||
// 减少数量
|
if (!note.IsTrash) {
|
||||||
Notebook.minusNotebookNumberNotes(note.NotebookId);
|
// 减少数量
|
||||||
|
Notebook.minusNotebookNumberNotes(note.NotebookId);
|
||||||
|
}
|
||||||
Note.clearCacheByNotebookId(note.NotebookId);
|
Note.clearCacheByNotebookId(note.NotebookId);
|
||||||
delete Note.cache[noteId];
|
delete Note.cache[noteId];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user