Save book UUID from sync response to doc_settings
This commit is contained in:
@@ -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."),
|
||||
|
||||
Reference in New Issue
Block a user