From a728e3b5fa88c74133ff625a9e3cb2272e40dc03 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Mon, 10 Oct 2022 17:52:47 -0400 Subject: [PATCH] ReaderStatus: save status summary (#9619) --- frontend/apps/reader/modules/readerstatus.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/apps/reader/modules/readerstatus.lua b/frontend/apps/reader/modules/readerstatus.lua index 4bf7b9954..2c005c036 100644 --- a/frontend/apps/reader/modules/readerstatus.lua +++ b/frontend/apps/reader/modules/readerstatus.lua @@ -19,7 +19,6 @@ local ReaderStatus = WidgetContainer:extend{ function ReaderStatus:init() if self.ui.document.is_pic then self.enabled = false - return else self.total_pages = self.document:getPageCount() self.ui.menu:registerToMainMenu(self) @@ -258,6 +257,9 @@ function ReaderStatus:onMarkBook(mark_read) else self.settings.data.summary = {status = "complete"} end + -- If History is called over Reader, it will read the file to get the book status, so save and flush + self.settings:saveSetting("summary", self.settings.data.summary) + self.settings:flush() end function ReaderStatus:onReadSettings(config)