Wallabag remove from history setting fixes (#6059)
This commit is contained in:
1 parent
0b52fe9771
commit
8b4f1ca42e
2 files changed
+2
-3
No files matched your search
@@ -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