feat: add mark_saved
This commit is contained in:
parent
cb1fb40a04
commit
e6e8184430
1 changed files with 5 additions and 0 deletions
|
@ -698,6 +698,11 @@ impl Automerge {
|
|||
bytes
|
||||
}
|
||||
|
||||
/// Mark the document as saved
|
||||
pub fn mark_saved(&mut self) {
|
||||
self.saved = self.get_heads();
|
||||
}
|
||||
|
||||
/// Save the changes since the last call to [Self::save`]
|
||||
///
|
||||
/// The output of this will not be a compressed document format, but a series of individual
|
||||
|
|
Loading…
Add table
Reference in a new issue