mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Wallabag remove from history setting fixes (#6059)
This commit is contained in:
@@ -558,7 +558,7 @@ function KOSync:getProgress(manual)
|
||||
return
|
||||
end
|
||||
|
||||
body.percentage = roundPercent(body.percentage)
|
||||
body.percentage = Math.roundPercent(body.percentage)
|
||||
local progress = self:getLastProgress()
|
||||
local percentage = self:getLastPercent()
|
||||
DEBUG("current progress", percentage)
|
||||
|
||||
@@ -1042,8 +1042,7 @@ function Wallabag:getLastPercent()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function Wallabag:onCloseDocument()
|
||||
function Wallabag:onCloseDocument()
|
||||
if self.remove_finished_from_history then
|
||||
local document_full_path = self.ui.document.file
|
||||
if document_full_path and self.directory and self:getLastPercent() == 1 and self.directory == string.sub(document_full_path, 1, string.len(self.directory)) then
|
||||
|
||||
Reference in New Issue
Block a user