From dc7dc75e317c904727045f9c9b818eb8dbd4d422 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 8 May 2020 16:42:51 +0800 Subject: [PATCH] feat(webreader): do not always show reading direction pop do not show the reading direction popup if the one from the book is the same as the current closes #151 --- komga-webui/src/views/BookReader.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/komga-webui/src/views/BookReader.vue b/komga-webui/src/views/BookReader.vue index 9755001b3..77ca192b0 100644 --- a/komga-webui/src/views/BookReader.vue +++ b/komga-webui/src/views/BookReader.vue @@ -573,9 +573,11 @@ export default Vue.extend({ case ReadingDirection.LEFT_TO_RIGHT: case ReadingDirection.RIGHT_TO_LEFT: case ReadingDirection.VERTICAL: - // bypass setter so cookies aren't set - this.settings.readingDirection = this.book.metadata.readingDirection - this.snackReadingDirection = true + if (this.readingDirection !== this.book.metadata.readingDirection) { + // bypass setter so cookies aren't set + this.settings.readingDirection = this.book.metadata.readingDirection + this.snackReadingDirection = true + } break }