History *works*

WIP on save on entry page doesn't show last change
This commit is contained in:
Geoffroy BONNEVILLE
2020-04-14 19:59:19 +02:00
parent 9603c1ff01
commit b66e79f97c
8 changed files with 54 additions and 115 deletions

View File

@@ -222,8 +222,6 @@ namespace ModernKeePass.Infrastructure.KeePass
public void UpdateEntry(string entryId, string fieldName, object fieldValue)
{
var pwEntry = _pwDatabase.RootGroup.FindEntry(BuildIdFromString(entryId), true);
pwEntry.Touch(true);
pwEntry.CreateBackup(null);
switch (fieldName)
{
@@ -252,6 +250,13 @@ namespace ModernKeePass.Infrastructure.KeePass
}
}
public void AddHistory(string entryId)
{
var pwEntry = _pwDatabase.RootGroup.FindEntry(BuildIdFromString(entryId), true);
pwEntry.Touch(true);
pwEntry.CreateBackup(null);
}
public void UpdateGroup(string groupId)
{
throw new NotImplementedException();