add clear api for DocSettings

to remove both history settings and sidecar settings
This commit is contained in:
chrox
2014-10-07 13:06:52 +08:00
parent d0b4fa2665
commit 6ee8f22d73

View File

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