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."),