Commit 2575e154 by Brian Coca

Merge pull request #11740 from amenonsen/8602-rebase

Encrypt the vault file after editing only if the contents changed
parents d2346fd2 f8bf2ba1
......@@ -227,6 +227,10 @@ class VaultEditor(object):
call(self._editor_shell_command(tmp_path))
tmpdata = self.read_data(tmp_path)
# Do nothing if the content has not changed
if existing_data == tmpdata:
return
# create new vault
this_vault = VaultLib(self.password)
if cipher:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment