Улучшение синхронизации

This commit is contained in:
Book Pauk
2019-09-19 20:39:01 +07:00
parent 487e605520
commit fd0f523c64
2 changed files with 3 additions and 0 deletions

View File

@@ -510,7 +510,9 @@ class Reader extends Vue {
if (this.recentBooksActive) {
await this.$refs.recentBooksPage.updateTableData();
}
}
if (eventName == 'set-recent') {
const oldBook = this.mostRecentBookReactive;
const newBook = bookManager.mostRecentBook();
if (oldBook && newBook) {

View File

@@ -450,6 +450,7 @@ class BookManager {
await bmRecentStore.setItem('recent-last', this.recentLast);
this.recentChanged = true;
this.emit('set-recent');
this.emit('recent-changed');
}