From 2f73465d8d3e4eec20d296a00296b1d6663a40d7 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Sun, 5 Apr 2020 21:39:21 +0530 Subject: [PATCH] Saving DB should clear the modified flag --- src/db.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db.rs b/src/db.rs index e017fc8..33e84bb 100644 --- a/src/db.rs +++ b/src/db.rs @@ -93,6 +93,8 @@ impl DB { .context("could not move or delete temporary database file")?; return Err(e).context("could not move temporary database file"); } + + self.modified = false; } Ok(())