|
|
@ -1042,8 +1042,7 @@ function Wallabag:getLastPercent()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Wallabag:onCloseDocument()
|
|
|
|
function Wallabag:onCloseDocument()
|
|
|
|
|
|
|
|
if self.remove_finished_from_history then
|
|
|
|
if self.remove_finished_from_history then
|
|
|
|
local document_full_path = self.ui.document.file
|
|
|
|
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
|
|
|
|
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
|
|
|
|