From 86b83ff0bc0371683eff0029aa6eae6cf85b3934 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sun, 31 May 2026 21:09:46 -0400 Subject: [PATCH] Save book UUID from sync response to doc_settings --- main.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.lua b/main.lua index b7cde09..11b25b4 100644 --- a/main.lua +++ b/main.lua @@ -848,6 +848,15 @@ function Bookhoard:_doUpdateProgress(interactive) UIManager:nextTick(function() if ok then logger.dbg("Bookhoard: progress pushed successfully") + if result and result.book_results then + for _, br in ipairs(result.book_results) do + if br.synced and br.book_uuid and br.sha256 == book_data.sha256 then + self.ui.doc_settings:saveSetting("bookhoard_uuid", br.book_uuid) + self.ui.doc_settings:flush() + break + end + end + end if interactive then UIManager:show(InfoMessage:new{ text = _("Progress has been pushed."),