Добавлено восстановление из архива

This commit is contained in:
Book Pauk
2022-07-14 01:55:09 +07:00
parent e6b9330108
commit 239bbb8263
2 changed files with 35 additions and 6 deletions

View File

@@ -445,6 +445,13 @@ class BookManager {
this.emit('recent-deleted', value.key);
}
async restoreRecentBook(value) {
const item = this.recent[value.key];
item.deleted = 0;
await this.recentSetItem(item);
}
async cleanRecentBooks() {
const sorted = this.getSortedRecent();