Поправки багов

This commit is contained in:
Book Pauk
2019-09-20 16:38:33 +07:00
parent f124b9c050
commit 49b3f05d65
2 changed files with 2 additions and 1 deletions

View File

@@ -512,7 +512,7 @@ class Reader extends Vue {
}
}
if (eventName == 'set-recent') {
if (eventName == 'set-recent' || eventName == 'recent-deleted') {
const oldBook = this.mostRecentBookReactive;
const newBook = bookManager.mostRecentBook();
if (oldBook && newBook) {

View File

@@ -370,6 +370,7 @@ class BookManager {
this.recentLast = null;
await bmRecentStore.setItem('recent-last', this.recentLast);
}
this.emit('recent-deleted', value.key);
this.emit('recent-changed', value.key);
}