add clear api for DocSettings

to remove both history settings and sidecar settings
pull/962/head
chrox 10 years ago
parent d0b4fa2665
commit 6ee8f22d73

@ -146,4 +146,13 @@ function DocSettings:close()
self:flush()
end
function DocSettings:clear()
if self.history_file then
os.remove(self.history_file)
end
if self.sidecar_file then
os.remove(self.sidecar_file)
end
end
return DocSettings

Loading…
Cancel
Save