Дополнение в convertRecent
This commit is contained in:
@@ -81,13 +81,14 @@ class BookManager {
|
|||||||
|
|
||||||
for (const key in this.recent) {
|
for (const key in this.recent) {
|
||||||
const book = this.recent[key];
|
const book = this.recent[key];
|
||||||
|
|
||||||
if (!book.path) {
|
if (!book.path) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const newKey = this.keyFromPath(book.path);
|
const newKey = this.keyFromPath(book.path);
|
||||||
|
|
||||||
if (!book.deleted && key !== newKey) {
|
if (!book.deleted && key !== newKey || book.key !== newKey) {
|
||||||
this.recent[newKey] = _.cloneDeep(book);
|
this.recent[newKey] = _.cloneDeep(book);
|
||||||
this.recent[newKey].key = newKey;
|
this.recent[newKey].key = newKey;
|
||||||
book.deleted = 1;
|
book.deleted = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user