Wallabag remove from history setting fixes (#6059)

reviewable/pr6062/r1 v2020.04
mwoz123 4 years ago committed by GitHub
parent 0b52fe9771
commit 8b4f1ca42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save